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
This commit is contained in:
Travis Howell 2007-06-27 01:46:04 +00:00
parent 6d7e938ca0
commit 23426fcea5

View File

@ -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;