diff options
-rw-r--r-- | omx/gstomxvideoenc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/omx/gstomxvideoenc.c b/omx/gstomxvideoenc.c index c54d8a7..1d0d106 100644 --- a/omx/gstomxvideoenc.c +++ b/omx/gstomxvideoenc.c @@ -1751,6 +1751,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; } |