mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-10 06:42:26 +00:00
Open CD Audio O_NONBLOCK. CD Audio now works on my system, and doesn't
spew garbage in /var/log/syslog. Whee!
This commit is contained in:
parent
091ed897ef
commit
b0d4014885
1 changed files with 1 additions and 1 deletions
|
@ -412,7 +412,7 @@ int CDAudio_Init(void)
|
|||
cd_dev[sizeof(cd_dev) - 1] = 0;
|
||||
}
|
||||
|
||||
if ((cdfile = open(cd_dev, O_RDONLY)) == -1) {
|
||||
if ((cdfile = open(cd_dev, O_RDONLY | O_NONBLOCK)) == -1) {
|
||||
Con_Printf("CDAudio_Init: open of \"%s\" failed (%i)\n", cd_dev, errno);
|
||||
cdfile = -1;
|
||||
return -1;
|
||||
|
|
Loading…
Reference in a new issue