diff options
-rw-r--r-- | engines/bbvs/videoplayer.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/bbvs/videoplayer.cpp b/engines/bbvs/videoplayer.cpp index 85cc5ed544..eb162612f2 100644 --- a/engines/bbvs/videoplayer.cpp +++ b/engines/bbvs/videoplayer.cpp @@ -44,7 +44,11 @@ void BbvsEngine::playVideo(int videoNum) { } Video::VideoDecoder *videoDecoder = new Video::AVIDecoder(); - videoDecoder->loadFile(videoFilename); + if (!videoDecoder->loadFile(videoFilename)) { + delete videoDecoder; + warning("Unable to open video %s", videoFilename); + return; + } videoDecoder->start(); |