mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 12:41:05 +00:00
qtdemux: only send initial gaps for non-fragmented streams
It would be unusual to have the header segment with an 'edts' atom indicating gaps at the beginning when handling fragmented streams. The header usually doesn't contain any timestamping information, this should come from the playlist/manifest and the segments with media in those scenarios. https://bugzilla.gnome.org/show_bug.cgi?id=758171
This commit is contained in:
parent
ef8cb05823
commit
8bcc733cec
1 changed files with 7 additions and 3 deletions
|
@ -5801,9 +5801,13 @@ gst_qtdemux_process_adapter (GstQTDemux * demux, gboolean force)
|
|||
|
||||
demux->got_moov = TRUE;
|
||||
gst_qtdemux_check_send_pending_segment (demux);
|
||||
for (n = 0; n < demux->n_streams; n++) {
|
||||
gst_qtdemux_stream_send_initial_gap_segments (demux,
|
||||
demux->streams[n]);
|
||||
|
||||
/* fragmented streams headers shouldn't contain edts atoms */
|
||||
if (!demux->fragmented) {
|
||||
for (n = 0; n < demux->n_streams; n++) {
|
||||
gst_qtdemux_stream_send_initial_gap_segments (demux,
|
||||
demux->streams[n]);
|
||||
}
|
||||
}
|
||||
|
||||
g_node_destroy (demux->moov_node);
|
||||
|
|
Loading…
Reference in a new issue