mirror of
https://github.com/kanjitalk755/macemu.git
synced 2026-04-26 05:20:33 +00:00
bin/cue audio playback: fix teardown nesting in close_bincue
This commit is contained in:
@@ -538,14 +538,14 @@ void close_bincue(void *fh)
|
||||
CueSheet *cs = (CueSheet *) fh;
|
||||
CDPlayer *player = CSToPlayer(cs);
|
||||
|
||||
if (player == currently_playing) {
|
||||
CDStop_bincue(fh);
|
||||
assert(currently_playing == NULL);
|
||||
}
|
||||
|
||||
players.remove(player);
|
||||
|
||||
if (cs && player) {
|
||||
if (player == currently_playing) {
|
||||
CDStop_bincue(fh);
|
||||
assert(currently_playing == NULL);
|
||||
}
|
||||
|
||||
players.remove(player);
|
||||
|
||||
free(cs);
|
||||
#ifdef USE_SDL_AUDIO
|
||||
ClosePlayerStream(player);
|
||||
|
||||
Reference in New Issue
Block a user