summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2014-03-19 12:12:49 +0100
committerTim-Philipp Müller <tim@centricular.com>2014-03-24 11:11:39 +0000
commit651e67e32dc309968ecd7ec15c9f30ba90d9897c (patch)
tree0cf1e9d01b68dfb8d934f7056e0b9575643334b5
parentc832b03b3b490d3b824106c41f5495cb99b53184 (diff)
omxvideodec: add missing unlock in the error path
Signed-off-by: Christian König <christian.koenig@amd.com> https://bugzilla.gnome.org/show_bug.cgi?id=726958
-rw-r--r--omx/gstomxvideodec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/omx/gstomxvideodec.c b/omx/gstomxvideodec.c
index a24282a..7660101 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;
}