adaptivedemux2: Drop segment lock on stream_seek error.

If stream_seek() fails, make sure to drop the segment lock before bailing out.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3883>
This commit is contained in:
Jan Schmidt 2022-12-28 00:41:44 +11:00 committed by GStreamer Marge Bot
parent 44d3751d68
commit ceda805abb

View file

@ -2316,6 +2316,7 @@ gst_adaptive_demux_handle_seek_event (GstAdaptiveDemux * demux,
stream, gst_flow_get_name (flow_ret));
GST_ADAPTIVE_SCHEDULER_UNLOCK (demux);
GST_ADAPTIVE_DEMUX_SEGMENT_UNLOCK (demux);
GST_API_UNLOCK (demux);
gst_event_unref (event);