From 674119dfa1d8b2b0035525afa6e8ba726ac464b1 Mon Sep 17 00:00:00 2001 From: Jorge Zapata Date: Wed, 20 Feb 2013 10:57:07 +0100 Subject: qtdemux: When checking for a gap be sure that the end time is valid --- gst/isomp4/qtdemux.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst/isomp4/qtdemux.c b/gst/isomp4/qtdemux.c index 335a99ed6..5bcaa9a72 100644 --- a/gst/isomp4/qtdemux.c +++ b/gst/isomp4/qtdemux.c @@ -3740,7 +3740,8 @@ gst_qtdemux_sync_streams (GstQTDemux * demux) GST_LOG_OBJECT (demux, "current position: %" GST_TIME_FORMAT ", stream end: %" GST_TIME_FORMAT, GST_TIME_ARGS (demux->segment.last_stop), GST_TIME_ARGS (end_time)); - if (end_time + 2 * GST_SECOND < demux->segment.last_stop) { + if (GST_CLOCK_TIME_IS_VALID (end_time) && + (end_time + 2 * GST_SECOND < demux->segment.last_stop)) { GST_DEBUG_OBJECT (demux, "sending EOS for stream %s", GST_PAD_NAME (stream->pad)); stream->sent_eos = TRUE; -- cgit v1.2.3