]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
glx build, Linux: remove one source of message spam (when /dev/cdrom is not readable)
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 18 Dec 2010 17:38:01 +0000 (17:38 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 18 Dec 2010 17:38:01 +0000 (17:38 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10671 d7cf8633-e32d-0410-b094-e92efae38249

cd_linux.c

index 4544a5d122cda6f117a423db0a210b58efd5ab0c..bc07b849f9febd274d719cdf36a2d3e7ca7699a5 100644 (file)
@@ -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;