fix a bug where getting OS Mixer volume may fail, and we were closing
the fd, but didn't mark anything indicated the fd was close, so chaos ensued. Here, we just remove the close() statement and assume it was just a fluke!! git-svn-id: https://svn.musicpd.org/mpd/trunk@125 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
@ -118,7 +118,6 @@ int getOssVolumeLevel() {
|
||||
int left, right, level;
|
||||
|
||||
if(ioctl(volume_ossFd,MIXER_READ(volume_ossControl),&level) < 0) {
|
||||
while(close(volume_ossFd)<0 && errno==EINTR);
|
||||
ERROR("unable to read volume\n");
|
||||
return -1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user