diff options
author | Matthew Hoops | 2012-07-21 17:38:24 -0400 |
---|---|---|
committer | Matthew Hoops | 2012-07-21 17:38:24 -0400 |
commit | 144b9ce9189260973994ca83b6e2b29126ef269a (patch) | |
tree | df36bfc012c2f09c850667dd051ac326a8836fa1 /video | |
parent | 24c97b89138190d211b1f19d5575c9029c0329b2 (diff) | |
download | scummvm-rg350-144b9ce9189260973994ca83b6e2b29126ef269a.tar.gz scummvm-rg350-144b9ce9189260973994ca83b6e2b29126ef269a.tar.bz2 scummvm-rg350-144b9ce9189260973994ca83b6e2b29126ef269a.zip |
VIDEO: Don't try to sync video off of finished audio tracks
Diffstat (limited to 'video')
-rw-r--r-- | video/video_decoder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/video_decoder.cpp b/video/video_decoder.cpp index 82cba7e6e2..3cce2dea02 100644 --- a/video/video_decoder.cpp +++ b/video/video_decoder.cpp @@ -196,7 +196,7 @@ uint32 AdvancedVideoDecoder::getTime() const { if (useAudioSync()) { for (TrackList::const_iterator it = _tracks.begin(); it != _tracks.end(); it++) { - if ((*it)->getTrackType() == Track::kTrackTypeAudio) { + if ((*it)->getTrackType() == Track::kTrackTypeAudio && !(*it)->endOfTrack()) { uint32 time = ((const AudioTrack *)*it)->getRunningTime(); if (time != 0) |