From a5933dc002beaa33a55a0201ccba7e76bd58de25 Mon Sep 17 00:00:00 2001 From: Vivia Nikolaidou Date: Thu, 2 Feb 2017 15:25:09 +0200 Subject: avwait: Fix potential deadlock when flushing / shutting down audio The mutex must be unlocked in the error case https://bugzilla.gnome.org/show_bug.cgi?id=778076 --- gst/timecode/gstavwait.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gst') diff --git a/gst/timecode/gstavwait.c b/gst/timecode/gstavwait.c index 8e122c111..780ee80df 100644 --- a/gst/timecode/gstavwait.c +++ b/gst/timecode/gstavwait.c @@ -666,6 +666,7 @@ gst_avwait_asink_chain (GstPad * pad, GstObject * parent, GstBuffer * inbuf) if (self->audio_flush_flag || self->shutdown_flag) { GST_DEBUG_OBJECT (self, "Shutting down, ignoring frame"); gst_buffer_unref (inbuf); + g_mutex_unlock (&self->mutex); return GST_FLOW_FLUSHING; } duration = -- cgit v1.2.3