mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-26 11:46:54 +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;
|
delete _channels[i].chan;
|
||||||
_channels[i].id = -1;
|
_channels[i].id = -1;
|
||||||
_channels[i].chan = NULL;
|
_channels[i].chan = NULL;
|
||||||
_channels[i].stream->finish();
|
if (_channels[i].stream) {
|
||||||
_channels[i].stream = 0;
|
_channels[i].stream->finish();
|
||||||
|
_channels[i].stream = 0;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
int32 rate, vol, pan;
|
int32 rate, vol, pan;
|
||||||
bool stereo, is_16bit;
|
bool stereo, is_16bit;
|
||||||
|
Loading…
Reference in New Issue
Block a user