diff options
-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 |