qtdemux: Allow edit lists on fragmented files on push mode

Fragmented files often use elst.duration=0 which before
ee78825eae 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
This commit is contained in:
Alicia Boya García 2018-03-30 17:03:13 +02:00 committed by Thibault Saunier
parent 5388d6e6a2
commit c2a0da8096

View file

@ -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);