diff options
author | Jorge Zapata <jorgeluis.zapata@gmail.com> | 2013-02-20 10:57:07 +0100 |
---|---|---|
committer | Josep Torra <n770galaxy@gmail.com> | 2013-05-22 14:41:22 +0200 |
commit | 674119dfa1d8b2b0035525afa6e8ba726ac464b1 (patch) | |
tree | e0712dff470723c0cb3282484dfdd6771b191eaa | |
parent | 46902501e769b57fd3635bbdafccfeaac3b0cf68 (diff) |
qtdemux: When checking for a gap be sure that the end time is validqtdemux-0.10
-rw-r--r-- | gst/isomp4/qtdemux.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |