Call Mix_HookMusicFinished when Mix_HaltMusic is called.
authorGabriel Jacobo <gabomdq@gmail.com>
Thu, 03 Jan 2013 10:18:59 -0500
changeset 598131d1de92d4d
parent 596 640c6012848b
child 599 9a9b330729f5
Call Mix_HookMusicFinished when Mix_HaltMusic is called.

Fixes Bugzilla #1610.
(transplanted from a4e9c53d9c30fb2315a07e338b8208b8e7d3b8c4)
music.c
     1.1 --- a/music.c	Sun Oct 28 13:32:43 2012 -0700
     1.2 +++ b/music.c	Thu Jan 03 10:18:59 2013 -0500
     1.3 @@ -1283,6 +1283,9 @@
     1.4  	SDL_LockAudio();
     1.5  	if ( music_playing ) {
     1.6  		music_internal_halt();
     1.7 +		if ( music_finished_hook ) {
     1.8 +			music_finished_hook();
     1.9 +		}
    1.10  	}
    1.11  	SDL_UnlockAudio();
    1.12