mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-26 03:37:53 +00:00
Check if stream exists first.
svn-id: r17926
This commit is contained in:
parent
c8b17da61c
commit
172b95d347
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user