mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 06:58:56 +00:00
gst/playback/gstdecodebin.c: Don't try to remove elements twice.
Original commit message from CVS: * gst/playback/gstdecodebin.c: (gst_decode_bin_init), (gst_decode_bin_dispose), (free_dynamics), (pad_unblocked), (pad_blocked), (close_pad_link), (new_pad): Don't try to remove elements twice.
This commit is contained in:
parent
7879080357
commit
c36509f8b8
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2005-10-21 Wim Taymans <wim@fluendo.com>
|
||||||
|
|
||||||
|
* gst/playback/gstdecodebin.c: (gst_decode_bin_init),
|
||||||
|
(gst_decode_bin_dispose), (free_dynamics), (pad_unblocked),
|
||||||
|
(pad_blocked), (close_pad_link), (new_pad):
|
||||||
|
Don't try to remove elements twice.
|
||||||
|
|
||||||
2005-10-21 Wim Taymans <wim@fluendo.com>
|
2005-10-21 Wim Taymans <wim@fluendo.com>
|
||||||
|
|
||||||
* ext/theora/theoradec.c: (theora_dec_src_query),
|
* ext/theora/theoradec.c: (theora_dec_src_query),
|
||||||
|
|
|
@ -488,7 +488,7 @@ static void
|
||||||
pad_blocked (GstPad * pad, gboolean blocked, GstDecodeBin * decode_bin)
|
pad_blocked (GstPad * pad, gboolean blocked, GstDecodeBin * decode_bin)
|
||||||
{
|
{
|
||||||
decode_bin->numwaiting--;
|
decode_bin->numwaiting--;
|
||||||
if (decode_bin->numwaiting == 0) {
|
if (decode_bin->numwaiting == 0 && decode_bin->fakesink) {
|
||||||
gst_object_ref (decode_bin->fakesink);
|
gst_object_ref (decode_bin->fakesink);
|
||||||
gst_bin_remove (GST_BIN (decode_bin), decode_bin->fakesink);
|
gst_bin_remove (GST_BIN (decode_bin), decode_bin->fakesink);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue