tsdemux: unlock mutex on -1 start_offfset 00/274100/1
authorStéphane Cerveau <scerveau@collabora.com>
Mon, 14 Feb 2022 11:57:44 +0000 (12:57 +0100)
committerGilbok Lee <gilbok.lee@samsung.com>
Thu, 21 Apr 2022 08:19:33 +0000 (17:19 +0900)
Closing #1013

Change-Id: I3c7f046a533d48f5200e3c3762c2ea536378649c
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1718>

subprojects/gst-plugins-bad/gst/mpegtsdemux/tsdemux.c

index 315f442..6dfda5a 100644 (file)
@@ -993,6 +993,7 @@ gst_ts_demux_do_seek (MpegTSBase * base, GstEvent * event)
     if (G_UNLIKELY (start_offset == -1)) {
       GST_WARNING_OBJECT (demux,
           "Couldn't convert start position to an offset");
+      g_mutex_unlock (&demux->lock);
       goto done;
     }