playbin3: fix missing lock when unknown stream type in pad-removed cb
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2193>
This commit is contained in:
parent
ed5db9bce7
commit
3d9f25d322
@ -3143,11 +3143,12 @@ pad_removed_cb (GstElement * decodebin, GstPad * pad, GstSourceGroup * group)
|
|||||||
else if (g_str_has_prefix (GST_PAD_NAME (pad), "text"))
|
else if (g_str_has_prefix (GST_PAD_NAME (pad), "text"))
|
||||||
combine = &playbin->combiner[PLAYBIN_STREAM_TEXT];
|
combine = &playbin->combiner[PLAYBIN_STREAM_TEXT];
|
||||||
else
|
else
|
||||||
return;
|
goto done;
|
||||||
|
|
||||||
combiner_release_pad (playbin, combine, pad);
|
combiner_release_pad (playbin, combine, pad);
|
||||||
release_source_pad (playbin, group, pad);
|
release_source_pad (playbin, group, pad);
|
||||||
|
|
||||||
|
done:
|
||||||
GST_PLAY_BIN3_UNLOCK (playbin);
|
GST_PLAY_BIN3_UNLOCK (playbin);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user