From: Sebastian Dröge Date: Wed, 4 Nov 2009 12:07:27 +0000 (+0100) Subject: assrender: Unlock and free any pending subtitle buffers on FLUSH_START X-Git-Tag: 1.19.3~507^2~17840 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e38fbc6795d75989dfa4664687b39b595763df0a;p=platform%2Fupstream%2Fgstreamer.git assrender: Unlock and free any pending subtitle buffers on FLUSH_START --- diff --git a/ext/assrender/gstassrender.c b/ext/assrender/gstassrender.c index 40fd03b2e4..fdb8c8ee0c 100644 --- a/ext/assrender/gstassrender.c +++ b/ext/assrender/gstassrender.c @@ -757,6 +757,12 @@ gst_assrender_event_text (GstPad * pad, GstEvent * event) GST_OBJECT_UNLOCK (render); GST_DEBUG_OBJECT (render, "done flushing"); } + g_mutex_lock (render->subtitle_mutex); + if (render->subtitle_pending) + gst_buffer_unref (render->subtitle_pending); + render->subtitle_pending = NULL; + g_cond_signal (render->subtitle_cond); + g_mutex_unlock (render->subtitle_mutex); gst_event_unref (event); ret = TRUE; break;