diff options
Diffstat (limited to 'engines/bladerunner/vqa_player.cpp')
-rw-r--r-- | engines/bladerunner/vqa_player.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/engines/bladerunner/vqa_player.cpp b/engines/bladerunner/vqa_player.cpp index 845e2ee1a7..129bb77b0e 100644 --- a/engines/bladerunner/vqa_player.cpp +++ b/engines/bladerunner/vqa_player.cpp @@ -99,7 +99,7 @@ int VQAPlayer::update() { _callbackLoopEnded(_callbackData, 0, _loop); } } - _surface = nullptr; + return -1; } @@ -114,7 +114,7 @@ int VQAPlayer::update() { if (now >= _frameNextTime) { int frame = _frameNext; _decoder.readFrame(_frameNext, 0x2); - _surface = _decoder.decodeVideoFrame(); + _decoder.decodeVideoFrame(); if (_hasAudio) { if (!_audioStarted) { @@ -142,14 +142,9 @@ int VQAPlayer::update() { return frame; } - _surface = nullptr; return -1; } -const Graphics::Surface *VQAPlayer::getSurface() const { - return _surface; -} - void VQAPlayer::updateZBuffer(ZBuffer *zbuffer) { _decoder.decodeZBuffer(zbuffer); } |