diff options
author | Matthew Hoops | 2011-01-14 13:01:57 +0000 |
---|---|---|
committer | Matthew Hoops | 2011-01-14 13:01:57 +0000 |
commit | 8ce55fbcde93149bb7644c4fe3c1def8cebe4908 (patch) | |
tree | 0f76754b114faa3858d59a991a0ec0b019dd8999 /graphics/video/video_decoder.cpp | |
parent | 06acd962440ea25c40cd890aab984aeeaba2de45 (diff) | |
download | scummvm-rg350-8ce55fbcde93149bb7644c4fe3c1def8cebe4908.tar.gz scummvm-rg350-8ce55fbcde93149bb7644c4fe3c1def8cebe4908.tar.bz2 scummvm-rg350-8ce55fbcde93149bb7644c4fe3c1def8cebe4908.zip |
VIDEO: Reset the pause start time when seeking while paused
svn-id: r55239
Diffstat (limited to 'graphics/video/video_decoder.cpp')
-rw-r--r-- | graphics/video/video_decoder.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/graphics/video/video_decoder.cpp b/graphics/video/video_decoder.cpp index d1d3445c38..81a8aecb30 100644 --- a/graphics/video/video_decoder.cpp +++ b/graphics/video/video_decoder.cpp @@ -100,6 +100,11 @@ void VideoDecoder::pauseVideo(bool pause) { } } +void VideoDecoder::resetPauseStartTime() { + if (isPaused()) + _pauseStartTime = g_system->getMillis(); +} + uint32 FixedRateVideoDecoder::getTimeToNextFrame() const { if (endOfVideo() || _curFrame < 0) return 0; |