aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Howell2005-05-06 04:44:54 +0000
committerTravis Howell2005-05-06 04:44:54 +0000
commit172b95d3476b1f69a073ec4436fa0868f237fa7b (patch)
treed914ff3930fdfa087f03318739600644dd18ddf9
parentc8b17da61c84c57516025b5d250885bceee343d6 (diff)
downloadscummvm-rg350-172b95d3476b1f69a073ec4436fa0868f237fa7b.tar.gz
scummvm-rg350-172b95d3476b1f69a073ec4436fa0868f237fa7b.tar.bz2
scummvm-rg350-172b95d3476b1f69a073ec4436fa0868f237fa7b.zip
Check if stream exists first.
svn-id: r17926
-rw-r--r--scumm/smush/smush_mixer.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/scumm/smush/smush_mixer.cpp b/scumm/smush/smush_mixer.cpp
index 09a05af29c..c97d8c23ee 100644
--- a/scumm/smush/smush_mixer.cpp
+++ b/scumm/smush/smush_mixer.cpp
@@ -98,8 +98,10 @@ bool SmushMixer::handleFrame() {
delete _channels[i].chan;
_channels[i].id = -1;
_channels[i].chan = NULL;
- _channels[i].stream->finish();
- _channels[i].stream = 0;
+ if (_channels[i].stream) {
+ _channels[i].stream->finish();
+ _channels[i].stream = 0;
+ }
} else {
int32 rate, vol, pan;
bool stereo, is_16bit;