mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
uridecodebin: fix leak when the source fails to change state
This commit is contained in:
parent
c933933f09
commit
5974042bba
1 changed files with 6 additions and 0 deletions
|
@ -1901,6 +1901,12 @@ gst_uri_decode_bin_change_state (GstElement * element,
|
|||
remove_source (decoder);
|
||||
do_async_done (decoder);
|
||||
break;
|
||||
case GST_STATE_CHANGE_READY_TO_NULL:
|
||||
GST_DEBUG ("ready to null");
|
||||
remove_decoders (decoder);
|
||||
remove_pads (decoder);
|
||||
remove_source (decoder);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue