From 90106b6bf2687227c8b721b492a6bdfe6fcc1171 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Thu, 26 Oct 2017 10:07:15 +0200 Subject: [PATCH] oggdemux: Don't forget to reacquire lock when needed Fixup to ef93130cf04143fcf675b05ce0d19eddfbac4e75 I overlooked the issue. There is a case when the lock is released and we need to reacquire it --- ext/ogg/gstoggdemux.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/ogg/gstoggdemux.c b/ext/ogg/gstoggdemux.c index 5c7ad89aa1..075f0dc171 100644 --- a/ext/ogg/gstoggdemux.c +++ b/ext/ogg/gstoggdemux.c @@ -4555,6 +4555,8 @@ gst_ogg_demux_handle_page (GstOggDemux * ogg, ogg_page * page, gboolean discont) GstFlowReturn res; res = gst_ogg_demux_seek_back_after_push_duration_check_unlock (ogg); + /* Call to function above unlocks, relock */ + GST_PUSH_LOCK (ogg); if (res != GST_FLOW_OK) return res; }