From: divverent Date: Sat, 18 Dec 2010 17:38:01 +0000 (+0000) Subject: glx build, Linux: remove one source of message spam (when /dev/cdrom is not readable) X-Git-Tag: xonotic-v0.1.0preview~3 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=69dc75ee0f2f8fdc80e45279f163659f866405c4;p=xonotic%2Fdarkplaces.git glx build, Linux: remove one source of message spam (when /dev/cdrom is not readable) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10671 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=fbacd03b3b8fc9783a186b62223cd27c267c87aa --- diff --git a/cd_linux.c b/cd_linux.c index 4544a5d1..bc07b849 100644 --- a/cd_linux.c +++ b/cd_linux.c @@ -203,7 +203,7 @@ int CDAudio_SysUpdate (void) struct cdrom_subchnl subchnl; static time_t lastchk = 0; - if (cdPlaying && lastchk < time(NULL)) + if (cdPlaying && lastchk < time(NULL) && cdfile != -1) { lastchk = time(NULL) + 2; //two seconds between chks subchnl.cdsc_format = CDROM_MSF;