[gst-devel] compile trouble

Yuri Noferini yurix at yurix.homelinux.net
Tue Nov 22 01:21:04 CET 2005


anyone can explain why when i try to compile this piece of code gcc
fails with :

> gstthesisscreencap.c:34: error: syntax error before '{' token
> make[1]: *** [libgstthesisscreencap_la-gstthesisscreencap.lo] Error 1
> make[1]: Leaving directory `/home/yurix/mediatesi/work/source/gstthesisscreencap /src'
> make: *** [all-recursive] Error 1
> 

here you are the evil code :

static void
gst_thesisscreencap_base_init (gpointer g_class)
{
	GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);

	gst_element_class_set_details (element_class, &thesisscreencap_details);

	gst_element_class_add_pad_template (element_class,
					gstt_pad_template_new (
						"src",
						GST_PAD_SRC, 
						GST_PAD_ALWAYS,
          					GST_STATIC_CAPS(
						        "video/x-raw-rgb, "
        						"bpp = (int) 32, "
        						"depth = (int) 24, "
        						"width = (int) [640 , 1024] ,"
							"height = (int) [480 , 768] ,"	
        						"framerate = (double) [ 1.0, 10.0 ]"
						)
					)
				);
}




More information about the gstreamer-devel mailing list