omxvideoenc: Fix deadlock in error case when draining
https://bugzilla.gnome.org/show_bug.cgi?id=784972
This commit is contained in:
parent
9db720f13e
commit
45eaf9cfc6
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user