set caps in C problem
Forzaferrarileo
leonardo.ferroro at gmail.com
Sun Dec 28 04:37:55 PST 2014
Ty , but now i have another problem :
GStreamer-WARNING **: Trying to connect elements that don't share a common
ancestor: source and caps
source = gst_element_factory_make ("videotestsrc", "source");
capsfilter = gst_element_factory_make("capsfilter", "caps");
convert = gst_element_factory_make ("videoconvert", "convert");
sink = gst_element_factory_make ("autovideosink","sink");
g_object_set(capsfilter, "caps", gst_caps_new_simple("video/x-raw",
"width", G_TYPE_INT, 1280,
"height", G_TYPE_INT, 720, NULL), NULL);
pipeline = gst_pipeline_new ("test-pipeline");
gst_bin_add_many (GST_BIN (pipeline), source, convert, sink, NULL);
gst_element_link(source,capsfilter);
gst_element_link(capsfilter,convert);
gst_element_link(convert,sink);
--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/set-caps-in-C-problem-tp4670021p4670024.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
More information about the gstreamer-devel
mailing list