summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2016-05-20 11:15:44 +0300
committerSebastian Dröge <sebastian@centricular.com>2016-05-20 11:15:44 +0300
commit7cd9d34c80d9dace2671db4fb24ff19ca71c2584 (patch)
tree755c1319b69b6248991db8eb045826dea1d40e24
parent9e5cda59f82d6a2abb4186a7ce7061437e9c23ff (diff)
qtdemux: Set seek event seqnum on all SEGMENT events
Some were forgotten. See https://bugzilla.gnome.org/show_bug.cgi?id=765935
-rw-r--r--gst/isomp4/qtdemux.c12
1 files changed, 11 insertions, 1 deletions
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);
}