diff options
author | Einar Johan Trøan Sømåen | 2012-06-12 15:58:00 +0200 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2012-06-12 15:58:00 +0200 |
commit | eb6895ed6be52a772b4f2bd3e0c4b408202170ea (patch) | |
tree | 115e974144449f2bdd7372ccd602bee64bb8bd58 /engines/wintermute/video/decoders | |
parent | c6c2cfab4e444211654df2906f6e6eecccb9a22c (diff) | |
download | scummvm-rg350-eb6895ed6be52a772b4f2bd3e0c4b408202170ea.tar.gz scummvm-rg350-eb6895ed6be52a772b4f2bd3e0c4b408202170ea.tar.bz2 scummvm-rg350-eb6895ed6be52a772b4f2bd3e0c4b408202170ea.zip |
WINTERMUTE: Add rewindability to Theora-Decoder
This currently just abuses the fact that reset() does a rewind instead of a proper reset().
Diffstat (limited to 'engines/wintermute/video/decoders')
-rw-r--r-- | engines/wintermute/video/decoders/theora_decoder.cpp | 4 | ||||
-rw-r--r-- | engines/wintermute/video/decoders/theora_decoder.h | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/engines/wintermute/video/decoders/theora_decoder.cpp b/engines/wintermute/video/decoders/theora_decoder.cpp index 7c766fe3c6..647d9aff08 100644 --- a/engines/wintermute/video/decoders/theora_decoder.cpp +++ b/engines/wintermute/video/decoders/theora_decoder.cpp @@ -561,6 +561,10 @@ void TheoraDecoder::updateBalance() { g_system->getMixer()->setChannelBalance(*_audHandle, getBalance()); } +void TheoraDecoder::rewind() { + reset(); +} + } // End of namespace Sword25 #endif diff --git a/engines/wintermute/video/decoders/theora_decoder.h b/engines/wintermute/video/decoders/theora_decoder.h index 79e669c068..3844434036 100644 --- a/engines/wintermute/video/decoders/theora_decoder.h +++ b/engines/wintermute/video/decoders/theora_decoder.h @@ -50,7 +50,7 @@ namespace WinterMute { * - sword25 * - wintermute */ -class TheoraDecoder : public Video::VideoDecoder { +class TheoraDecoder : public Video::RewindableVideoDecoder { public: TheoraDecoder(Audio::Mixer::SoundType soundType = Audio::Mixer::kMusicSoundType); virtual ~TheoraDecoder(); @@ -87,6 +87,8 @@ public: bool endOfVideo() const; + void rewind(); + protected: // VideoDecoder API void updateVolume(); |