diff options
author | Vivia Nikolaidou <vivia@toolsonair.com> | 2017-02-02 15:25:09 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2017-02-02 15:29:25 +0200 |
commit | a5933dc002beaa33a55a0201ccba7e76bd58de25 (patch) | |
tree | 98160efd181486d041d1b8b1bcfa70e1c1f0f753 /gst | |
parent | 2ab19144be6784f230bbda55fbd238ef5ab41f21 (diff) |
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
Diffstat (limited to 'gst')
-rw-r--r-- | gst/timecode/gstavwait.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 = |