From fbcae49bf89a2ba1dbd7c1e4feb520d8ab6285fa Mon Sep 17 00:00:00 2001 From: divverent Date: Fri, 21 Dec 2007 20:17:01 +0000 Subject: [PATCH] only CDAudio_SysStop if a CD was actually playing (fixes error message spam) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7833 d7cf8633-e32d-0410-b094-e92efae38249 --- cd_shared.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cd_shared.c b/cd_shared.c index 3bda8928..5e3934ec 100644 --- a/cd_shared.c +++ b/cd_shared.c @@ -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; -- 2.39.2