set caps in C problem

Forzaferrarileo leonardo.ferroro at gmail.com
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);
	gst_caps_unref(caps);

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: http://gstreamer-devel.966125.n4.nabble.com/set-caps-in-C-problem-tp4670021.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list