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
This commit is contained in:
Thiago Santos 2015-01-09 11:40:40 -03:00
parent f7c682f802
commit 3e0be85840

View file

@ -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,