mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
gst/playback/gstdecodebin.c: And ref the pad before returning it again when linking to the queue failed. Otherwise we...
Original commit message from CVS: * gst/playback/gstdecodebin.c: (add_raw_queue): And ref the pad before returning it again when linking to the queue failed. Otherwise we will unref the pad twice later and things break.
This commit is contained in:
parent
ba9c438f98
commit
b02dc1bf6a
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2008-07-07 Sebastian Dröge <sebastian.droege@collabora.co.uk>
|
||||
|
||||
* gst/playback/gstdecodebin.c: (add_raw_queue):
|
||||
And ref the pad before returning it again when linking to the queue
|
||||
failed. Otherwise we will unref the pad twice later and things break.
|
||||
|
||||
2008-07-07 Sebastian Dröge <sebastian.droege@collabora.co.uk>
|
||||
|
||||
* gst/playback/gstdecodebin.c: (add_raw_queue):
|
||||
|
|
|
@ -747,7 +747,7 @@ add_raw_queue (GstDecodeBin * decode_bin, GstPad * pad)
|
|||
gst_object_unref (queuesrcpad);
|
||||
gst_object_unref (queuesinkpad);
|
||||
gst_bin_remove (GST_BIN (decode_bin), queue);
|
||||
return pad;
|
||||
return gst_object_ref (pad);
|
||||
}
|
||||
|
||||
decode_bin->queues = g_list_append (decode_bin->queues, queue);
|
||||
|
|
Loading…
Reference in a new issue