mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
qtdemux: Use the correct duration when comparing segments
Do not confuse QtDemuxSegments with GstSegments when comparing the total file duration with the segment duration Fixes #610296
This commit is contained in:
parent
2723de585e
commit
f1c61e1d84
1 changed files with 4 additions and 3 deletions
|
@ -2097,9 +2097,10 @@ gst_qtdemux_activate_segment (GstQTDemux * qtdemux, QtDemuxStream * stream,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* segment lies beyond total indicated duration */
|
/* segment lies beyond total indicated duration */
|
||||||
if (G_UNLIKELY (segment->duration != -1 && segment->time > segment->duration)) {
|
if (G_UNLIKELY (qtdemux->segment.duration != -1 &&
|
||||||
GST_WARNING_OBJECT (qtdemux, "segment->duration %" G_GUINT64_FORMAT
|
segment->time > qtdemux->segment.duration)) {
|
||||||
" < segment->time %" G_GUINT64_FORMAT, segment->duration,
|
GST_WARNING_OBJECT (qtdemux, "file duration %" G_GINT64_FORMAT
|
||||||
|
" < segment->time %" G_GUINT64_FORMAT, qtdemux->segment.duration,
|
||||||
segment->time);
|
segment->time);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue