From b8e3d167ea85385422afc4336d6eb5cfaa715c07 Mon Sep 17 00:00:00 2001 From: Philippe Normand Date: Wed, 27 Apr 2022 10:18:39 +0100 Subject: [PATCH] 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: --- subprojects/gst-plugins-base/gst-libs/gst/video/gstvideodecoder.c | 1 + 1 file changed, 1 insertion(+) diff --git a/subprojects/gst-plugins-base/gst-libs/gst/video/gstvideodecoder.c b/subprojects/gst-plugins-base/gst-libs/gst/video/gstvideodecoder.c index f146fe3..0daedbd 100644 --- a/subprojects/gst-plugins-base/gst-libs/gst/video/gstvideodecoder.c +++ b/subprojects/gst-plugins-base/gst-libs/gst/video/gstvideodecoder.c @@ -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; -- 2.7.4