mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
qtdemux: check if the end_time is defined before using it
Avoids sending EOS too soon because of overflow. Can happen on fragmented mp4 playback.
This commit is contained in:
parent
673301ef48
commit
2eec7909aa
1 changed files with 2 additions and 1 deletions
|
@ -3746,7 +3746,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.position), GST_TIME_ARGS (end_time));
|
||||
if (end_time + 2 * GST_SECOND < demux->segment.position) {
|
||||
if (GST_CLOCK_TIME_IS_VALID (end_time)
|
||||
&& (end_time + 2 * GST_SECOND < demux->segment.position)) {
|
||||
GST_DEBUG_OBJECT (demux, "sending EOS for stream %s",
|
||||
GST_PAD_NAME (stream->pad));
|
||||
stream->sent_eos = TRUE;
|
||||
|
|
Loading…
Reference in a new issue