aboutsummaryrefslogtreecommitdiff
path: root/engines/zvision/console.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/zvision/console.cpp')
-rw-r--r--engines/zvision/console.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/zvision/console.cpp b/engines/zvision/console.cpp
index 9c7d79a8f1..6634e0bef4 100644
--- a/engines/zvision/console.cpp
+++ b/engines/zvision/console.cpp
@@ -69,9 +69,9 @@ bool Console::cmdLoadVideo(int argc, const char **argv) {
return true;
}
- Video::VideoDecoder *videoDecoder = new ZorkAVIDecoder();
- if (videoDecoder && videoDecoder->loadFile(argv[1])) {
- _engine->getRenderManager()->startVideo(videoDecoder);
+ ZorkAVIDecoder videoDecoder;
+ if (videoDecoder.loadFile(argv[1])) {
+ _engine->playVideo(videoDecoder);
}
return true;