mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
decodebin: Set element to NULL state before removing it from the bin
This commit is contained in:
parent
2faef82b9a
commit
830b500d40
1 changed files with 1 additions and 0 deletions
|
@ -2014,6 +2014,7 @@ connect_pad (GstDecodeBin * dbin, GstElement * src, GstDecodePad * dpad,
|
|||
if (!gst_pad_query_accept_caps (sinkpad, caps)) {
|
||||
GST_WARNING_OBJECT (dbin, "Element %s does not accept caps",
|
||||
GST_ELEMENT_NAME (element));
|
||||
gst_element_set_state (element, GST_STATE_NULL);
|
||||
gst_object_unref (sinkpad);
|
||||
gst_bin_remove (GST_BIN (dbin), element);
|
||||
continue;
|
||||
|
|
Loading…
Reference in a new issue