mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 18:51:11 +00:00
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:
parent
9e5cda59f8
commit
7cd9d34c80
1 changed files with 11 additions and 1 deletions
|
@ -2019,6 +2019,9 @@ gst_qtdemux_reset (GstQTDemux * qtdemux, gboolean hard)
|
||||||
}
|
}
|
||||||
if (!qtdemux->pending_newsegment) {
|
if (!qtdemux->pending_newsegment) {
|
||||||
qtdemux->pending_newsegment = gst_event_new_segment (&qtdemux->segment);
|
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;
|
demux->moov_node_compressed = NULL;
|
||||||
} else {
|
} else {
|
||||||
/* prepare newsegment to send when streaming actually starts */
|
/* prepare newsegment to send when streaming actually starts */
|
||||||
if (!demux->pending_newsegment)
|
if (!demux->pending_newsegment) {
|
||||||
demux->pending_newsegment =
|
demux->pending_newsegment =
|
||||||
gst_event_new_segment (&demux->segment);
|
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;
|
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_segment_init (&segment, GST_FORMAT_TIME);
|
||||||
GST_DEBUG_OBJECT (demux, "new pending_newsegment");
|
GST_DEBUG_OBJECT (demux, "new pending_newsegment");
|
||||||
demux->pending_newsegment = gst_event_new_segment (&segment);
|
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);
|
qtdemux_expose_streams (demux);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue