set caps in C problem

Forzaferrarileo leonardo.ferroro at
Sat Dec 27 16:27:24 PST 2014

hi , I'm trying to set caps in my c code , using : 

        source = gst_element_factory_make("videotestsrc","source");

	caps = gst_caps_new_simple("video/x-raw",
		"width", G_TYPE_INT, 1280,
		"height", G_TYPE_INT, 720,
		"framerate", GST_TYPE_FRACTION, 25, 1, NULL);
        g_object_set(source, "caps", caps, NULL);

but I'm getting :   GLib-GObject-WARNING **: g_object_set_valist: object
class 'GstVideoTestSrc' has no property named 'caps'

what I'm doing wrong? ( I'm using gstreamer1.0 )

View this message in context:
Sent from the GStreamer-devel mailing list archive at

More information about the gstreamer-devel mailing list