mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
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
This commit is contained in:
parent
2ab19144be
commit
a5933dc002
1 changed files with 1 additions and 0 deletions
|
@ -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 =
|
||||
|
|
Loading…
Reference in a new issue