summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSatya Prakash Gupta <sp.gupta@samsung.com>2017-07-17 13:44:54 +0530
committerSebastian Dröge <sebastian@centricular.com>2017-07-25 11:27:41 +0300
commit38c779c52fe2285dc45ce67b3d21cc500202fad2 (patch)
treeef151b7abb12ab4c92aee3aac59837c4e256a666
parent831175b4c810ca1b492775bf74707c675e91a113 (diff)
omxaudioenc: Fix deadlock in error case when draining
https://bugzilla.gnome.org/show_bug.cgi?id=784967
-rw-r--r--omx/gstomxaudioenc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/omx/gstomxaudioenc.c b/omx/gstomxaudioenc.c
index e92c21e..ed4d11b 100644
--- a/omx/gstomxaudioenc.c
+++ b/omx/gstomxaudioenc.c
@@ -1151,6 +1151,7 @@ gst_omx_audio_enc_drain (GstOMXAudioEnc * self)
if (err != OMX_ErrorNone) {
GST_ERROR_OBJECT (self, "Failed to drain component: %s (0x%08x)",
gst_omx_error_to_string (err), err);
+ g_mutex_unlock (&self->drain_lock);
GST_AUDIO_ENCODER_STREAM_LOCK (self);
return GST_FLOW_ERROR;
}