diff options
author | Satya Prakash Gupta <sp.gupta@samsung.com> | 2017-07-17 15:48:44 +0530 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2017-07-25 11:27:41 +0300 |
commit | 0346233b9bb9abc6cbbfbee80ea5066fe282b883 (patch) | |
tree | 44ff14adc990f31cf86e4d332963cd0e4896e945 | |
parent | 38c779c52fe2285dc45ce67b3d21cc500202fad2 (diff) |
omxvideoenc: Fix deadlock in error case when draining
https://bugzilla.gnome.org/show_bug.cgi?id=784972
-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; } |