mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 02:01:12 +00:00
urisourcebin: Unset locked state
Some elements still had it in failure cases Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3720>
This commit is contained in:
parent
f444e62672
commit
1546ab0d0f
1 changed files with 5 additions and 0 deletions
|
@ -1934,6 +1934,10 @@ setup_parsebin_for_slot (ChildSrcPadInfo * info, GstPad * originating_pad)
|
|||
|
||||
could_not_link:
|
||||
{
|
||||
if (info->pre_parse_queue)
|
||||
gst_element_set_locked_state (info->pre_parse_queue, FALSE);
|
||||
if (info->demuxer)
|
||||
gst_element_set_locked_state (info->demuxer, FALSE);
|
||||
GST_URI_SOURCE_BIN_UNLOCK (urisrc);
|
||||
GST_STATE_UNLOCK (urisrc);
|
||||
GST_ELEMENT_ERROR (urisrc, CORE, NEGOTIATION,
|
||||
|
@ -2143,6 +2147,7 @@ no_typefind:
|
|||
could_not_link:
|
||||
{
|
||||
gst_object_unref (sinkpad);
|
||||
gst_element_set_locked_state (info->typefind, FALSE);
|
||||
GST_ELEMENT_ERROR (urisrc, CORE, NEGOTIATION,
|
||||
(NULL), ("Can't link source to typefind element"));
|
||||
return FALSE;
|
||||
|
|
Loading…
Reference in a new issue