From 8541963c613cfaaff38feef1e00b00a0d5c9ddbc Mon Sep 17 00:00:00 2001
From: mazmazz <mar.marcoz@outlook.com>
Date: Fri, 24 Aug 2018 18:00:18 -0400
Subject: [PATCH] I_SongPlaying detect GME properly

(cherry picked from commit e88d1477616ca66472ecb50d371e37dc79c77c0f)
---
 src/sdl/mixer_sound.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/sdl/mixer_sound.c b/src/sdl/mixer_sound.c
index 676bfc4db2..dd00d78f73 100644
--- a/src/sdl/mixer_sound.c
+++ b/src/sdl/mixer_sound.c
@@ -524,7 +524,12 @@ musictype_t I_SongType(void)
 
 boolean I_SongPlaying(void)
 {
-	return (boolean)music;
+	return (
+#ifdef HAVE_LIBGME
+		(I_SongType() == MU_GME && gme) ||
+#endif
+		(boolean)music
+	);
 }
 
 boolean I_SongPaused(void)
-- 
GitLab