diff options
-rw-r--r-- | video/video_decoder.cpp | 5 | ||||
-rw-r--r-- | video/video_decoder.h | 6 |
2 files changed, 8 insertions, 3 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); } diff --git a/video/video_decoder.h b/video/video_decoder.h index 59cce2e327..cc7d1df51b 100644 --- a/video/video_decoder.h +++ b/video/video_decoder.h @@ -433,7 +433,7 @@ protected: /** * Set the pause status of the track. */ - void pause(bool shouldPause) {} + void pause(bool shouldPause); /** * Return if the track is paused. @@ -451,7 +451,7 @@ protected: /** * Function called by pause() for subclasses to implement. */ - void pauseIntern(bool pause); + virtual void pauseIntern(bool shouldPause) {} private: bool _paused; @@ -597,7 +597,7 @@ protected: virtual Audio::Mixer::SoundType getSoundType() const { return Audio::Mixer::kPlainSoundType; } protected: - void pauseIntern(bool pause); + void pauseIntern(bool shouldPause); /** * Get the AudioStream that is the representation of this AudioTrack |