mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +00:00
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:
parent
f7c682f802
commit
3e0be85840
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue