diff options
author | Matthew Hoops | 2013-08-25 22:19:36 -0400 |
---|---|---|
committer | Matthew Hoops | 2013-08-28 00:05:13 -0400 |
commit | 7a8689538adcfaafa193be6780557a7bd5e8643d (patch) | |
tree | 16c3ea4e0f03890fd2d2f63c9684b3fa33d63187 /video/video_decoder.cpp | |
parent | 85614b0de470b8a324b1f54827b2aa14ba07c1fe (diff) | |
download | scummvm-rg350-7a8689538adcfaafa193be6780557a7bd5e8643d.tar.gz scummvm-rg350-7a8689538adcfaafa193be6780557a7bd5e8643d.tar.bz2 scummvm-rg350-7a8689538adcfaafa193be6780557a7bd5e8643d.zip |
VIDEO: Use the main isSeekable() in seekToFrame()
Diffstat (limited to 'video/video_decoder.cpp')
-rw-r--r-- | video/video_decoder.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/video/video_decoder.cpp b/video/video_decoder.cpp index 106e1db7e0..6424d6f37b 100644 --- a/video/video_decoder.cpp +++ b/video/video_decoder.cpp @@ -363,12 +363,12 @@ bool VideoDecoder::seek(const Audio::Timestamp &time) { } bool VideoDecoder::seekToFrame(uint frame) { + if (!isSeekable()) + return false; + VideoTrack *track = 0; for (TrackList::iterator it = _tracks.begin(); it != _tracks.end(); it++) { - if (!(*it)->isSeekable()) - return false; - if ((*it)->getTrackType() == Track::kTrackTypeVideo) { // We only allow seeking by frame when one video track // is present |