]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
only CDAudio_SysStop if a CD was actually playing (fixes error message spam)
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 21 Dec 2007 20:17:01 +0000 (20:17 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 21 Dec 2007 20:17:01 +0000 (20:17 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7833 d7cf8633-e32d-0410-b094-e92efae38249

cd_shared.c

index 3bda8928091709306691dce08f86b341c6c1e815..5e3934ecad5d88db37b4c5fc20df7751228b33f7 100644 (file)
@@ -217,7 +217,7 @@ void CDAudio_Stop (void)
                S_StopChannel (faketrack);
                faketrack = -1;
        }
-       else if (CDAudio_SysStop() == -1)
+       else if (cdPlaying && (CDAudio_SysStop() == -1))
                return;
 
        wasPlaying = false;