diff --git a/omx/gstomxvideodec.c b/omx/gstomxvideodec.c index a24282a327..7660101b72 100644 --- a/omx/gstomxvideodec.c +++ b/omx/gstomxvideodec.c @@ -2339,6 +2339,7 @@ gst_omx_video_dec_drain (GstOMXVideoDec * self, gboolean is_eos) 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_DECODER_STREAM_LOCK (self); return GST_FLOW_ERROR; }