Commit 33091e2b authored by Mark Nauwelaerts's avatar Mark Nauwelaerts

flvdemux: clear old segment event when requesting new one

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=680283
parent 6e673d47
...@@ -2986,6 +2986,10 @@ gst_flv_demux_sink_event (GstPad * pad, GstObject * parent, GstEvent * event) ...@@ -2986,6 +2986,10 @@ gst_flv_demux_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
demux->video_need_segment = TRUE; demux->video_need_segment = TRUE;
ret = TRUE; ret = TRUE;
gst_event_unref (event); gst_event_unref (event);
if (demux->new_seg_event) {
gst_event_unref (demux->new_seg_event);
demux->new_seg_event = NULL;
}
} }
break; break;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment