aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Howell2007-06-27 01:46:04 +0000
committerTravis Howell2007-06-27 01:46:04 +0000
commit23426fcea594e20c55b04f00e1e7dce402492247 (patch)
treef44081f42e29455d50e09db402f6574d3dad85bd
parent6d7e938ca06124cb880a73c6a752f8b6ba89b8dc (diff)
downloadscummvm-rg350-23426fcea594e20c55b04f00e1e7dce402492247.tar.gz
scummvm-rg350-23426fcea594e20c55b04f00e1e7dce402492247.tar.bz2
scummvm-rg350-23426fcea594e20c55b04f00e1e7dce402492247.zip
Clear any paused OmniTV video, when playing another video. To fix crashes in The Feeble Files, when another video is played between the pause and restart of an OmniTV video.
svn-id: r27737
-rw-r--r--engines/agos/animation.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/engines/agos/animation.cpp b/engines/agos/animation.cpp
index 8748cff54e..8d5238259d 100644
--- a/engines/agos/animation.cpp
+++ b/engines/agos/animation.cpp
@@ -130,8 +130,11 @@ void MoviePlayer::play() {
return;
}
- if (!_fd) {
- return;
+ if (_omniTVFile) {
+ // Clear any paused OmniTV video
+ _mixer->stopHandle(_omniTVSound);
+ delete _omniTVFile;
+ _omniTVFile = 0;
}
_leftButtonDown = false;