diff options
author | Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> | 2012-07-23 12:39:05 +0200 |
---|---|---|
committer | Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> | 2012-07-23 13:06:03 +0200 |
commit | cba3e39e5fbb699d855441539852a8d7603010a0 (patch) | |
tree | 629a13a2e524c306d794ea457d31791be1553358 | |
parent | a84131c3e00ae44d140fd04b9f1d448f19ee7aa8 (diff) |
flvdemux: clear old segment event when requesting new one
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=680283
-rw-r--r-- | gst/flv/gstflvdemux.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gst/flv/gstflvdemux.c b/gst/flv/gstflvdemux.c index b920b177f..c1d62776e 100644 --- a/gst/flv/gstflvdemux.c +++ b/gst/flv/gstflvdemux.c @@ -2965,6 +2965,10 @@ gst_flv_demux_sink_event (GstPad * pad, 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; } |