aboutsummaryrefslogtreecommitdiff
path: root/graphics/video/smk_decoder.cpp
diff options
context:
space:
mode:
authorMax Horn2010-08-04 08:25:05 +0000
committerMax Horn2010-08-04 08:25:05 +0000
commit0e2807dc27af89c46a191834e5e623a9e77e9187 (patch)
treea105f2e5207a5aad449d42bf19740668b1716739 /graphics/video/smk_decoder.cpp
parent154c589f188914e79ba10da1de947a5ae2c0427e (diff)
downloadscummvm-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 'graphics/video/smk_decoder.cpp')
-rw-r--r--graphics/video/smk_decoder.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/graphics/video/smk_decoder.cpp b/graphics/video/smk_decoder.cpp
index 0b7de774eb..4d03305cce 100644
--- a/graphics/video/smk_decoder.cpp
+++ b/graphics/video/smk_decoder.cpp
@@ -367,10 +367,10 @@ uint32 SmackerDecoder::getElapsedTime() const {
return VideoDecoder::getElapsedTime();
}
-bool SmackerDecoder::load(Common::SeekableReadStream &stream) {
+bool SmackerDecoder::load(Common::SeekableReadStream *stream) {
close();
- _fileStream = &stream;
+ _fileStream = stream;
// Seek to the first frame
_header.signature = _fileStream->readUint32BE();