mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
urisourcebin: Cleanup on failure
This ensures there is a source present/valid *ONLY* in PAUSED and above. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3720>
This commit is contained in:
parent
1546ab0d0f
commit
13ad8c8e4e
1 changed files with 3 additions and 1 deletions
|
@ -3014,11 +3014,13 @@ gst_uri_source_bin_change_state (GstElement * element,
|
|||
/* ERRORS */
|
||||
source_failed:
|
||||
{
|
||||
remove_source (urisrc);
|
||||
return GST_STATE_CHANGE_FAILURE;
|
||||
}
|
||||
setup_failed:
|
||||
{
|
||||
/* clean up leftover groups */
|
||||
if (transition == GST_STATE_CHANGE_READY_TO_PAUSED)
|
||||
remove_source (urisrc);
|
||||
return GST_STATE_CHANGE_FAILURE;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue