videodecoder: release stream lock after handling gap events

The stream lock is taken before handling gap events but was not released in all
possible runtime situations. This issue was introduced in:
https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1274

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2307>
This commit is contained in:
Philippe Normand 2022-04-27 10:18:39 +01:00 committed by GStreamer Marge Bot
parent 0f9f179bec
commit b8e3d167ea

View file

@ -1492,6 +1492,7 @@ gst_video_decoder_sink_event_default (GstVideoDecoder * decoder,
*/
forward_immediate = TRUE;
} else {
GST_VIDEO_DECODER_STREAM_UNLOCK (decoder);
gst_clear_event (&event);
}
break;