From 3e0be85840d1d587039cd88fba158a82e5442dfb Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Fri, 9 Jan 2015 11:40:40 -0300 Subject: [PATCH] qtdemux: fix stream time conversion Use the right macro to convert to the correct scale or the segment information will be wrong https://bugzilla.gnome.org/show_bug.cgi?id=742572 --- 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 63a4623..cc1c4e7 100644 --- a/gst/isomp4/qtdemux.c +++ b/gst/isomp4/qtdemux.c @@ -2485,7 +2485,7 @@ check_update_duration (GstQTDemux * qtdemux, GstClockTime duration) for (i = 0; i < qtdemux->n_streams; i++) { QtDemuxStream *stream = qtdemux->streams[i]; if (stream) { - movdur = QTSTREAMTIME_TO_GSTTIME (stream, duration); + movdur = GSTTIME_TO_QTSTREAMTIME (stream, duration); if (movdur > stream->duration) { GST_DEBUG_OBJECT (qtdemux, "Updating stream #%d duration to %" GST_TIME_FORMAT, i, -- 2.7.4