playbin3: fix missing lock when unknown stream type in pad-removed cb

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2209>
This commit is contained in:
hoonhee.lee 2022-04-15 14:03:08 +09:00 committed by Tim-Philipp Müller
parent b5b8f0ed22
commit abf1bfdb9d

View file

@ -3147,11 +3147,12 @@ pad_removed_cb (GstElement * decodebin, GstPad * pad, GstSourceGroup * group)
else if (g_str_has_prefix (GST_PAD_NAME (pad), "text"))
combine = &playbin->combiner[PLAYBIN_STREAM_TEXT];
else
return;
goto done;
combiner_release_pad (playbin, combine, pad);
release_source_pad (playbin, group, pad);
done:
GST_PLAY_BIN3_UNLOCK (playbin);
}