aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMatthew Hoops2012-07-21 17:31:00 -0400
committerMatthew Hoops2012-07-21 17:31:00 -0400
commit24c97b89138190d211b1f19d5575c9029c0329b2 (patch)
treeba296e58377c28a71bfe16eb9745ae3d55da9cb1 /engines
parent5cdb0f71a499250d36d79d0f8ba85ff2d370f9aa (diff)
downloadscummvm-rg350-24c97b89138190d211b1f19d5575c9029c0329b2.tar.gz
scummvm-rg350-24c97b89138190d211b1f19d5575c9029c0329b2.tar.bz2
scummvm-rg350-24c97b89138190d211b1f19d5575c9029c0329b2.zip
VIDEO: Move PSXStreamDecoder to the new VideoDecoder API
Diffstat (limited to 'engines')
-rw-r--r--engines/sword1/animation.cpp1
-rw-r--r--engines/sword2/animation.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/engines/sword1/animation.cpp b/engines/sword1/animation.cpp
index ddafd964eb..49c5ef7312 100644
--- a/engines/sword1/animation.cpp
+++ b/engines/sword1/animation.cpp
@@ -189,6 +189,7 @@ bool MoviePlayer::load(uint32 id) {
// Need to load here in case it fails in which case we'd need
// to go back to paletted mode
if (_decoder->loadFile(filename)) {
+ ((Video::AdvancedVideoDecoder *)_decoder)->start(); // TODO: Remove after new API is complete
return true;
} else {
initGraphics(g_system->getWidth(), g_system->getHeight(), true);
diff --git a/engines/sword2/animation.cpp b/engines/sword2/animation.cpp
index 5e3f8929e9..c1cf33ff09 100644
--- a/engines/sword2/animation.cpp
+++ b/engines/sword2/animation.cpp
@@ -99,6 +99,7 @@ bool MoviePlayer::load(const char *name) {
// Need to load here in case it fails in which case we'd need
// to go back to paletted mode
if (_decoder->loadFile(filename)) {
+ ((Video::AdvancedVideoDecoder *)_decoder)->start(); // TODO: Remove after new API is complete
return true;
} else {
initGraphics(640, 480, true);