aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine
diff options
context:
space:
mode:
authorMatthew Hoops2012-07-20 20:52:58 -0400
committerMatthew Hoops2012-07-20 20:52:58 -0400
commita12b3ea2dde9db348424f401a35fca3167120011 (patch)
tree2600ec4584e503f2cfead2d9c86c19d4d6ca1219 /engines/sci/engine
parent818c16bdd09f4aa92c4a46de5256f28331c35cbb (diff)
downloadscummvm-rg350-a12b3ea2dde9db348424f401a35fca3167120011.tar.gz
scummvm-rg350-a12b3ea2dde9db348424f401a35fca3167120011.tar.bz2
scummvm-rg350-a12b3ea2dde9db348424f401a35fca3167120011.zip
SCI: Move the SEQ code to the new VideoDecoder API
Diffstat (limited to 'engines/sci/engine')
-rw-r--r--engines/sci/engine/kvideo.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/sci/engine/kvideo.cpp b/engines/sci/engine/kvideo.cpp
index cb2a763da9..bfe32a8d82 100644
--- a/engines/sci/engine/kvideo.cpp
+++ b/engines/sci/engine/kvideo.cpp
@@ -162,15 +162,16 @@ reg_t kShowMovie(EngineState *s, int argc, reg_t *argv) {
} else {
// DOS SEQ
// SEQ's are called with no subops, just the string and delay
- SeqDecoder *seqDecoder = new SeqDecoder();
- seqDecoder->setFrameDelay(argv[1].toUint16()); // Time between frames in ticks
- videoDecoder = seqDecoder;
+ // Time is specified as ticks
+ videoDecoder = new SEQDecoder(argv[1].toUint16());
if (!videoDecoder->loadFile(filename)) {
warning("Failed to open movie file %s", filename.c_str());
delete videoDecoder;
videoDecoder = 0;
}
+
+ ((Video::AdvancedVideoDecoder *)videoDecoder)->start(); // TODO: Remove after new API is complete
}
} else {
// Windows AVI