aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Howell2009-01-24 12:26:14 +0000
committerTravis Howell2009-01-24 12:26:14 +0000
commit2c11490d698d7fb065938fe5acfa3101f046f378 (patch)
tree889b64dada2f03498aecbe7ccf8422020342eab2
parentab5e3db9e3d1fae2abf97cf4770c8caab8ae81cc (diff)
downloadscummvm-rg350-2c11490d698d7fb065938fe5acfa3101f046f378.tar.gz
scummvm-rg350-2c11490d698d7fb065938fe5acfa3101f046f378.tar.bz2
scummvm-rg350-2c11490d698d7fb065938fe5acfa3101f046f378.zip
pollCD() should only return true, if CD audio is actually playing.
svn-id: r36035
-rw-r--r--backends/platform/sdl/sdl.cpp2
1 files changed, 1 insertions, 1 deletions
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() {