flvdemux: clear old segment event when requesting new one
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Mon, 23 Jul 2012 10:39:05 +0000 (12:39 +0200)
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Mon, 23 Jul 2012 10:50:21 +0000 (12:50 +0200)
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=680283

gst/flv/gstflvdemux.c

index 3913602..e2778fd 100644 (file)
@@ -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;
     }