Check if stream exists first.

svn-id: r17926
This commit is contained in:
Travis Howell 2005-05-06 04:44:54 +00:00
parent c8b17da61c
commit 172b95d347

View File

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