From faa664b8ea5fdd264c3e7abc13830714cd27168c Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Mon, 11 Apr 2016 08:33:17 +0900 Subject: [PATCH] qtdemux: Fix parsing segment duration of empty edit list box For empty edit list, segment-duration in edit list box should not be used for segment event. https://bugzilla.gnome.org/show_bug.cgi?id=764870 --- gst/isomp4/qtdemux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/isomp4/qtdemux.c b/gst/isomp4/qtdemux.c index b568c50225..77d3272932 100644 --- a/gst/isomp4/qtdemux.c +++ b/gst/isomp4/qtdemux.c @@ -8326,7 +8326,7 @@ qtdemux_parse_segments (GstQTDemux * qtdemux, QtDemuxStream * stream, /* time and duration expressed in global timescale */ segment->time = stime; /* add non scaled values so we don't cause roundoff errors */ - if (duration) { + if (duration || media_start == GST_CLOCK_TIME_NONE) { time += duration; stime = QTTIME_TO_GSTTIME (qtdemux, time); segment->duration = stime - segment->time;