[gst-devel] Pipeline with multiple filesources is stalled.

Sandeep Prakash 123sandy at gmail.com
Wed Sep 29 06:49:53 CEST 2010


Hi 

One problem I found in the pad-added callback is:

/*plug a queue in the pad and decided what to do according to the mimetype*/
	queue = gst_element_factory_make("queue", NULL);
	sinkpad = gst_element_get_static_pad(queue, "sink");
	gst_pad_link(pad, sinkpad);
	gst_object_unref(sinkpad);

queue element has to be part of the bin for you to do a gst_pad_link. Here
gst_pad_link will
fail.

/*plug a queue in the pad and decided what to do according to the mimetype*/
	queue = gst_element_factory_make("queue", NULL);
        gst_bin_add(GST_BIN(pipeline), queue);
	sinkpad = gst_element_get_static_pad(queue, "sink");
	gst_pad_link(pad, sinkpad);
	gst_object_unref(sinkpad);

Next time better check all the return values.

Regards,
Sandeep Prakash
http://sandeepprakash.homeip.net
-- 
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Pipeline-with-multiple-filesources-is-stalled-tp2714279p2718318.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.




More information about the gstreamer-devel mailing list