Commit f1c61e1d authored by Thiago Santos's avatar Thiago Santos
Browse files

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
parent 2723de58
......@@ -2097,9 +2097,10 @@ gst_qtdemux_activate_segment (GstQTDemux * qtdemux, QtDemuxStream * stream,
}
/* segment lies beyond total indicated duration */
if (G_UNLIKELY (segment->duration != -1 && segment->time > segment->duration)) {
GST_WARNING_OBJECT (qtdemux, "segment->duration %" G_GUINT64_FORMAT
" < segment->time %" G_GUINT64_FORMAT, segment->duration,
if (G_UNLIKELY (qtdemux->segment.duration != -1 &&
segment->time > qtdemux->segment.duration)) {
GST_WARNING_OBJECT (qtdemux, "file duration %" G_GINT64_FORMAT
" < segment->time %" G_GUINT64_FORMAT, qtdemux->segment.duration,
segment->time);
return FALSE;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment