mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
decodebin2: Don't leak elements that fail to go to PAUSED after being autoplugged
Fixes bug #642381.
This commit is contained in:
parent
46f3e7c6fd
commit
fbf9729795
1 changed files with 1 additions and 0 deletions
|
@ -1761,6 +1761,7 @@ connect_pad (GstDecodeBin * dbin, GstElement * src, GstDecodePad * dpad,
|
|||
tmp = chain->elements->data;
|
||||
gst_element_set_state (tmp, GST_STATE_NULL);
|
||||
gst_bin_remove (GST_BIN (dbin), tmp);
|
||||
gst_object_unref (tmp);
|
||||
chain->elements = g_list_delete_link (chain->elements, chain->elements);
|
||||
} while (tmp != element);
|
||||
CHAIN_MUTEX_UNLOCK (chain);
|
||||
|
|
Loading…
Reference in a new issue