SDL now stops and closes CD only if it is playing.

This commit is contained in:
nehalmistry 2002-03-19 22:55:47 +00:00
parent 65b9398100
commit 9936afd45c

View file

@ -1528,8 +1528,10 @@ global void QuitSound(void)
#endif
#ifdef USE_SDLCD
SDL_CDStop(CDRom);
SDL_CDClose(CDRom);
if (strcmp(CDMode,":off")) {
SDL_CDStop(CDRom);
SDL_CDClose(CDRom);
}
#endif
#ifdef USE_LIBCDA