From 45eaf9cfc6977c10fb81ddad21f4090909126793 Mon Sep 17 00:00:00 2001 From: Satya Prakash Gupta Date: Mon, 17 Jul 2017 15:48:44 +0530 Subject: [PATCH] omxvideoenc: Fix deadlock in error case when draining https://bugzilla.gnome.org/show_bug.cgi?id=784972 --- omx/gstomxvideoenc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/omx/gstomxvideoenc.c b/omx/gstomxvideoenc.c index 4657fb218e..9803a9fb39 100644 --- a/omx/gstomxvideoenc.c +++ b/omx/gstomxvideoenc.c @@ -1756,6 +1756,7 @@ gst_omx_video_enc_drain (GstOMXVideoEnc * 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_VIDEO_ENCODER_STREAM_LOCK (self); return GST_FLOW_ERROR; }