aboutsummaryrefslogtreecommitdiff
path: root/engines/saga
diff options
context:
space:
mode:
authorMatthew Hoops2012-07-23 21:04:51 -0400
committerMatthew Hoops2012-07-23 21:04:51 -0400
commita652f6669e2e9225aee17431784b433397b41ae3 (patch)
tree9b3c000e20ab019f5927132025868ca898877b2f /engines/saga
parent3a780a63db79c2a1b2527e6510182a74f6fcfe12 (diff)
downloadscummvm-rg350-a652f6669e2e9225aee17431784b433397b41ae3.tar.gz
scummvm-rg350-a652f6669e2e9225aee17431784b433397b41ae3.tar.bz2
scummvm-rg350-a652f6669e2e9225aee17431784b433397b41ae3.zip
VIDEO: Rewrite SmackerDecoder to use the new API
Diffstat (limited to 'engines/saga')
-rw-r--r--engines/saga/introproc_saga2.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/saga/introproc_saga2.cpp b/engines/saga/introproc_saga2.cpp
index b6470370af..15f7f4dc15 100644
--- a/engines/saga/introproc_saga2.cpp
+++ b/engines/saga/introproc_saga2.cpp
@@ -92,7 +92,7 @@ int Scene::FTA2EndProc(FTA2Endings whichEnding) {
}
void Scene::playMovie(const char *filename) {
- Video::SmackerDecoder *smkDecoder = new Video::SmackerDecoder(_vm->_mixer);
+ Video::SmackerDecoder *smkDecoder = new Video::SmackerDecoder();
if (!smkDecoder->loadFile(filename))
return;
@@ -101,6 +101,8 @@ void Scene::playMovie(const char *filename) {
uint16 y = (g_system->getHeight() - smkDecoder->getHeight()) / 2;
bool skipVideo = false;
+ smkDecoder->start();
+
while (!_vm->shouldQuit() && !smkDecoder->endOfVideo() && !skipVideo) {
if (smkDecoder->needsUpdate()) {
const Graphics::Surface *frame = smkDecoder->decodeNextFrame();