aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorMatthew Hoops2012-07-27 11:32:51 -0400
committerMatthew Hoops2012-07-27 11:32:51 -0400
commit991710d0a158bfce4e54bd240482a4e3044271d3 (patch)
tree749555015d23f0d889f2096a98bd31dcb7c593bf /engines/sci
parent21d3fa71aff686f5b64361ae3410268fc0ab5968 (diff)
downloadscummvm-rg350-991710d0a158bfce4e54bd240482a4e3044271d3.tar.gz
scummvm-rg350-991710d0a158bfce4e54bd240482a4e3044271d3.tar.bz2
scummvm-rg350-991710d0a158bfce4e54bd240482a4e3044271d3.zip
VIDEO: Adapt QuickTimeDecoder to the AdvancedVideoDecoder API
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/engine/kvideo.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/engines/sci/engine/kvideo.cpp b/engines/sci/engine/kvideo.cpp
index 456f860493..da63aa3a8d 100644
--- a/engines/sci/engine/kvideo.cpp
+++ b/engines/sci/engine/kvideo.cpp
@@ -170,8 +170,6 @@ reg_t kShowMovie(EngineState *s, int argc, reg_t *argv) {
delete videoDecoder;
videoDecoder = 0;
}
-
- ((Video::AdvancedVideoDecoder *)videoDecoder)->start(); // TODO: Remove after new API is complete
}
} else {
// Windows AVI
@@ -212,7 +210,6 @@ reg_t kShowMovie(EngineState *s, int argc, reg_t *argv) {
videoDecoder = 0;
} else {
s->_videoState.fileName = filename;
- ((Video::AdvancedVideoDecoder *)videoDecoder)->start();
}
break;
}
@@ -222,6 +219,7 @@ reg_t kShowMovie(EngineState *s, int argc, reg_t *argv) {
}
if (videoDecoder) {
+ ((Video::AdvancedVideoDecoder *)videoDecoder)->start(); // TODO: Remove after new API is complete
playVideo(videoDecoder, s->_videoState);
// HACK: Switch back to 8bpp if we played a true color video.