diff options
author | Andoni Morales Alastruey <amorales@flumotion.com> | 2010-06-10 13:55:30 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2011-05-23 15:17:41 +0200 |
commit | 126a98d967275b5f4ed0c09e5ff9c8e75bafd09f (patch) | |
tree | fe4f0079016a5f7760a91b3da10e6a0a30a67fb3 /ext | |
parent | afd240c621e77a87fe09a5b4559451fc7ddbd88a (diff) | |
download | gstreamer-plugins-bad-126a98d967275b5f4ed0c09e5ff9c8e75bafd09f.tar.gz |
teletextdec: fix deadlock on a stream error
https://bugzilla.gnome.org/show_bug.cgi?id=619739
Diffstat (limited to 'ext')
-rw-r--r-- | ext/teletextdec/gstteletextdec.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/teletextdec/gstteletextdec.c b/ext/teletextdec/gstteletextdec.c index 090990e2b..05c9d2986 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); |