diff options
author | Matthew Hoops | 2010-05-27 02:15:11 +0000 |
---|---|---|
committer | Matthew Hoops | 2010-05-27 02:15:11 +0000 |
commit | 7f678907d7067d3747d69e4564f64e6c1d5adc24 (patch) | |
tree | 7f56c0432053e7a7d67659a7c5e1a864a17ebb13 | |
parent | 2c2a1fa1ba9c4da4f955f341a8710b9cb40ede7e (diff) | |
download | scummvm-rg350-7f678907d7067d3747d69e4564f64e6c1d5adc24.tar.gz scummvm-rg350-7f678907d7067d3747d69e4564f64e6c1d5adc24.tar.bz2 scummvm-rg350-7f678907d7067d3747d69e4564f64e6c1d5adc24.zip |
Add some null checking when pausing/resuming videos.
svn-id: r49254
-rw-r--r-- | engines/mohawk/video.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/mohawk/video.cpp b/engines/mohawk/video.cpp index beef312876..deeb5daabf 100644 --- a/engines/mohawk/video.cpp +++ b/engines/mohawk/video.cpp @@ -41,12 +41,14 @@ VideoManager::~VideoManager() { void VideoManager::pauseVideos() { for (uint16 i = 0; i < _videoStreams.size(); i++) - _videoStreams[i]->pauseVideo(true); + if (_videoStreams[i].video) + _videoStreams[i]->pauseVideo(true); } void VideoManager::resumeVideos() { for (uint16 i = 0; i < _videoStreams.size(); i++) - _videoStreams[i]->pauseVideo(false); + if (_videoStreams[i].video) + _videoStreams[i]->pauseVideo(false); } void VideoManager::stopVideos() { |