tsdemux: Don't set invalid seqnum on segment event

https://bugzilla.gnome.org/show_bug.cgi?id=796623
This commit is contained in:
Nicolas Dufresne 2018-06-18 23:06:18 -04:00 committed by Edward Hervey
parent 85406b9827
commit c052ae511a

View file

@ -2476,6 +2476,8 @@ calculate_and_push_newsegment (GstTSDemux * demux, TSDemuxStream * stream,
if (!demux->segment_event) {
demux->segment_event = gst_event_new_segment (&demux->segment);
if (base->last_seek_seqnum != GST_SEQNUM_INVALID)
gst_event_set_seqnum (demux->segment_event, base->last_seek_seqnum);
}