qtdemux: Set seek event seqnum on all SEGMENT events

Some were forgotten.

See https://bugzilla.gnome.org/show_bug.cgi?id=765935
This commit is contained in:
Sebastian Dröge 2016-05-20 11:15:44 +03:00
parent 9e5cda59f8
commit 7cd9d34c80

View file

@ -2019,6 +2019,9 @@ gst_qtdemux_reset (GstQTDemux * qtdemux, gboolean hard)
}
if (!qtdemux->pending_newsegment) {
qtdemux->pending_newsegment = gst_event_new_segment (&qtdemux->segment);
if (qtdemux->segment_seqnum)
gst_event_set_seqnum (qtdemux->pending_newsegment,
qtdemux->segment_seqnum);
}
}
}
@ -6201,9 +6204,13 @@ gst_qtdemux_process_adapter (GstQTDemux * demux, gboolean force)
demux->moov_node_compressed = NULL;
} else {
/* prepare newsegment to send when streaming actually starts */
if (!demux->pending_newsegment)
if (!demux->pending_newsegment) {
demux->pending_newsegment =
gst_event_new_segment (&demux->segment);
if (demux->segment_seqnum)
gst_event_set_seqnum (demux->pending_newsegment,
demux->segment_seqnum);
}
}
demux->last_moov_offset = demux->offset;
@ -6283,6 +6290,9 @@ gst_qtdemux_process_adapter (GstQTDemux * demux, gboolean force)
gst_segment_init (&segment, GST_FORMAT_TIME);
GST_DEBUG_OBJECT (demux, "new pending_newsegment");
demux->pending_newsegment = gst_event_new_segment (&segment);
if (demux->segment_seqnum)
gst_event_set_seqnum (demux->pending_newsegment,
demux->segment_seqnum);
}
qtdemux_expose_streams (demux);
}