Commit ba9c438f authored by Sebastian Dröge's avatar Sebastian Dröge
Browse files

gst/playback/gstdecodebin.c: If linking the raw pad with a queue fails, try it...

gst/playback/gstdecodebin.c: If linking the raw pad with a queue fails, try it without a queue instead of failing com...

Original commit message from CVS:
* gst/playback/gstdecodebin.c: (add_raw_queue):
If linking the raw pad with a queue fails, try it without a queue
instead of failing completely. This should never happen.
parent bddd224b
2008-07-07 Sebastian Dröge <sebastian.droege@collabora.co.uk>
* gst/playback/gstdecodebin.c: (add_raw_queue):
If linking the raw pad with a queue fails, try it without a queue
instead of failing completely. This should never happen.
2008-07-07 Sebastian Dröge <sebastian.droege@collabora.co.uk>
 
Patch by: Evgeniy Stepanov <eugeni dot stepanov at gmail dot com>
......@@ -741,11 +741,13 @@ add_raw_queue (GstDecodeBin * decode_bin, GstPad * pad)
queuesrcpad = gst_element_get_static_pad (queue, "src");
if (gst_pad_link (pad, queuesinkpad) != GST_PAD_LINK_OK) {
GST_WARNING_OBJECT (decode_bin,
"Linking queue failed, trying without queue");
gst_element_set_state (queue, GST_STATE_NULL);
gst_object_unref (queuesrcpad);
gst_object_unref (queuesinkpad);
gst_bin_remove (GST_BIN (decode_bin), queue);
return NULL;
return pad;
}
decode_bin->queues = g_list_append (decode_bin->queues, queue);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment