From 126a98d967275b5f4ed0c09e5ff9c8e75bafd09f Mon Sep 17 00:00:00 2001 From: Andoni Morales Alastruey Date: Thu, 10 Jun 2010 13:55:30 +0200 Subject: [PATCH] teletextdec: fix deadlock on a stream error https://bugzilla.gnome.org/show_bug.cgi?id=619739 --- ext/teletextdec/gstteletextdec.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ext/teletextdec/gstteletextdec.c b/ext/teletextdec/gstteletextdec.c index 090990e2bf..05c9d2986f 100644 --- a/ext/teletextdec/gstteletextdec.c +++ b/ext/teletextdec/gstteletextdec.c @@ -678,8 +678,10 @@ gst_teletextdec_chain (GstPad * pad, GstBuffer * buf) g_mutex_lock (teletext->queue_lock); if (!g_queue_is_empty (teletext->queue)) { ret = gst_teletextdec_push_page (teletext); - if (ret != GST_FLOW_OK) + if (ret != GST_FLOW_OK) { + g_mutex_unlock (teletext->queue_lock); goto error; + } } g_mutex_unlock (teletext->queue_lock);