Call Mix_HookMusicFinished when Mix_HaltMusic is called. SDL-1.2
authorGabriel Jacobo <gabomdq@gmail.com>
Thu, 03 Jan 2013 10:18:59 -0500
branchSDL-1.2
changeset 597a4e9c53d9c30
parent 585 f2943eac3fd7
child 864 c8dc1ec196f5
Call Mix_HookMusicFinished when Mix_HaltMusic is called.

Fixes Bugzilla #1610.
music.c
     1.1 --- a/music.c	Sun Mar 04 21:32:47 2012 +0000
     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