From c2a0da8096009f0f99943f78dc18066965be60f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alicia=20Boya=20Garc=C3=ADa?= Date: Fri, 30 Mar 2018 17:03:13 +0200 Subject: [PATCH] qtdemux: Allow edit lists on fragmented files on push mode Fragmented files often use elst.duration=0 which before ee78825eaef2c5fffac7d6c5526fe18cec6b3eef was wrongly interpreted as having no frames. Since that issue has now been fixed, there is no reason to disable edit lists in fragmented files. This commit enables them, therefore producing correct stream time for files containing edit lists. https://bugzilla.gnome.org/show_bug.cgi?id=793058 --- gst/isomp4/qtdemux.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/gst/isomp4/qtdemux.c b/gst/isomp4/qtdemux.c index 37ed2fa4f9..3e8ce78607 100644 --- a/gst/isomp4/qtdemux.c +++ b/gst/isomp4/qtdemux.c @@ -6857,12 +6857,8 @@ gst_qtdemux_process_adapter (GstQTDemux * demux, gboolean force) demux->got_moov = TRUE; - if (demux->fragmented) { - gst_qtdemux_check_send_pending_segment (demux); - } else { - gst_event_replace (&demux->pending_newsegment, NULL); - gst_qtdemux_map_and_push_segments (demux, &demux->segment); - } + gst_event_replace (&demux->pending_newsegment, NULL); + gst_qtdemux_map_and_push_segments (demux, &demux->segment); if (demux->moov_node_compressed) { g_node_destroy (demux->moov_node_compressed);