From 2c11490d698d7fb065938fe5acfa3101f046f378 Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Sat, 24 Jan 2009 12:26:14 +0000 Subject: pollCD() should only return true, if CD audio is actually playing. svn-id: r36035 --- backends/platform/sdl/sdl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backends/platform/sdl/sdl.cpp b/backends/platform/sdl/sdl.cpp index 13ad284060..5af8d58872 100644 --- a/backends/platform/sdl/sdl.cpp +++ b/backends/platform/sdl/sdl.cpp @@ -782,7 +782,7 @@ bool OSystem_SDL::pollCD() { if (!_cdrom) return false; - return (_cdNumLoops != 0 && (SDL_GetTicks() < _cdEndTime || SDL_CDStatus(_cdrom) != CD_STOPPED)); + return (_cdNumLoops != 0 && (SDL_GetTicks() < _cdEndTime || SDL_CDStatus(_cdrom) == CD_PLAYING)); } void OSystem_SDL::updateCD() { -- cgit v1.2.3