assrender: fix gap event leak and invalid return value
authorArnaud Vrac <avrac@freebox.fr>
Mon, 28 Sep 2015 18:30:17 +0000 (20:30 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 29 Sep 2015 08:37:59 +0000 (09:37 +0100)
We don't want the gap event to be forwarded

https://bugzilla.gnome.org/show_bug.cgi?id=755759

ext/assrender/gstassrender.c

index 2ff12e2..b36e0a1 100644 (file)
@@ -1681,6 +1681,9 @@ gst_ass_render_event_text (GstPad * pad, GstObject * parent, GstEvent * event)
        * a text segment update */
       GST_ASS_RENDER_BROADCAST (render);
       GST_ASS_RENDER_UNLOCK (render);
+
+      gst_event_unref (event);
+      ret = TRUE;
       break;
     }
     case GST_EVENT_FLUSH_STOP: