From 7cd9d34c80d9dace2671db4fb24ff19ca71c2584 Mon Sep 17 00:00:00 2001 From: Sebastian Dröge Date: Fri, 20 May 2016 11:15:44 +0300 Subject: qtdemux: Set seek event seqnum on all SEGMENT events Some were forgotten. See https://bugzilla.gnome.org/show_bug.cgi?id=765935 --- gst/isomp4/qtdemux.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/gst/isomp4/qtdemux.c b/gst/isomp4/qtdemux.c index 63eeefb5f..d4f4c99c7 100644 --- a/gst/isomp4/qtdemux.c +++ b/gst/isomp4/qtdemux.c @@ -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); } -- cgit v1.2.3