diff options
author | Max Horn | 2010-08-04 08:25:05 +0000 |
---|---|---|
committer | Max Horn | 2010-08-04 08:25:05 +0000 |
commit | 0e2807dc27af89c46a191834e5e623a9e77e9187 (patch) | |
tree | a105f2e5207a5aad449d42bf19740668b1716739 /engines/sci/video/vmd_decoder.cpp | |
parent | 154c589f188914e79ba10da1de947a5ae2c0427e (diff) | |
download | scummvm-rg350-0e2807dc27af89c46a191834e5e623a9e77e9187.tar.gz scummvm-rg350-0e2807dc27af89c46a191834e5e623a9e77e9187.tar.bz2 scummvm-rg350-0e2807dc27af89c46a191834e5e623a9e77e9187.zip |
GRAPHICS: Change signature of VideoDecoder::load()
Now takes a pointer to a stream, instead of a reference.
The rational is that in all instances, callers have a pointer
(and dereference it to call load), and all load implementations
turn the reference back into a pointer.
svn-id: r51725
Diffstat (limited to 'engines/sci/video/vmd_decoder.cpp')
-rw-r--r-- | engines/sci/video/vmd_decoder.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/video/vmd_decoder.cpp b/engines/sci/video/vmd_decoder.cpp index 93132bc5d6..680a449207 100644 --- a/engines/sci/video/vmd_decoder.cpp +++ b/engines/sci/video/vmd_decoder.cpp @@ -50,13 +50,13 @@ VMDDecoder::~VMDDecoder() { close(); } -bool VMDDecoder::load(Common::SeekableReadStream &stream) { +bool VMDDecoder::load(Common::SeekableReadStream *stream) { close(); if (!_vmdDecoder->load(stream)) return false; - _fileStream = &stream; + _fileStream = stream; if (_vmdDecoder->getFeatures() & Graphics::CoktelVideo::kFeaturesPalette) loadPaletteFromVMD(); |