From 8592cacba8e7d6a36b82e33e4deac0705a4b1b84 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Tue, 7 Aug 2018 10:30:55 +0300 Subject: [PATCH] Mix_FadeInMusicPos(): fix bug #4216: set music_active according to error returned by music_internal_play(). Vitaly Novichkov (admin@wohlnet.ru) reports: 1) Open any music 2) Start it's playing by Mix_PlayMusic() 3) Pause music by Mix_PauseMusic() 4) Open another music 5) Try to start it by Mix_PlayMusic() 6) Nothing will be played! [The song must be started, but that wasn't happen!!!] 7) Call Mix_ResumeMusic() - and music will begin playing! --- music.c | 1 + 1 file changed, 1 insertion(+) diff --git a/music.c b/music.c index 83d938f1..afbf5afc 100644 --- a/music.c +++ b/music.c @@ -759,6 +759,7 @@ int Mix_FadeInMusicPos(Mix_Music *music, int loops, int ms, double position) loops = 1; } retval = music_internal_play(music, loops, position); + music_active = (retval == 0); Mix_UnlockAudio(); return(retval);