From 33091e2bf532750449866856eb44a6c6867702fd Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Mon, 23 Jul 2012 12:39:05 +0200 Subject: [PATCH] flvdemux: clear old segment event when requesting new one Fixes https://bugzilla.gnome.org/show_bug.cgi?id=680283 --- gst/flv/gstflvdemux.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gst/flv/gstflvdemux.c b/gst/flv/gstflvdemux.c index 3913602..e2778fd 100644 --- a/gst/flv/gstflvdemux.c +++ b/gst/flv/gstflvdemux.c @@ -2986,6 +2986,10 @@ gst_flv_demux_sink_event (GstPad * pad, GstObject * parent, GstEvent * event) demux->video_need_segment = TRUE; ret = TRUE; gst_event_unref (event); + if (demux->new_seg_event) { + gst_event_unref (demux->new_seg_event); + demux->new_seg_event = NULL; + } } break; } -- 2.7.4