diff options
author | Matthew Hoops | 2012-09-22 15:01:26 -0400 |
---|---|---|
committer | Matthew Hoops | 2012-09-22 15:03:15 -0400 |
commit | 48c70d872e223dab3a05b7ca5e0f2a75e0b853ea (patch) | |
tree | 43a72f0eeb48c3599b96b6bf6d748a14b8c4bb7c /video/video_decoder.cpp | |
parent | 9a1bdfbd0838fd895cac445f051b109914f51f73 (diff) | |
download | scummvm-rg350-48c70d872e223dab3a05b7ca5e0f2a75e0b853ea.tar.gz scummvm-rg350-48c70d872e223dab3a05b7ca5e0f2a75e0b853ea.tar.bz2 scummvm-rg350-48c70d872e223dab3a05b7ca5e0f2a75e0b853ea.zip |
VIDEO: Fix pausing audio in videos
Diffstat (limited to 'video/video_decoder.cpp')
-rw-r--r-- | video/video_decoder.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/video/video_decoder.cpp b/video/video_decoder.cpp index b4f44d91b5..c1d194a18f 100644 --- a/video/video_decoder.cpp +++ b/video/video_decoder.cpp @@ -386,6 +386,11 @@ bool VideoDecoder::Track::rewind() { return seek(Audio::Timestamp(0, 1000)); } +void VideoDecoder::Track::pause(bool shouldPause) { + _paused = shouldPause; + pauseIntern(shouldPause); +} + Audio::Timestamp VideoDecoder::Track::getDuration() const { return Audio::Timestamp(0, 1000); } |