Commit f515692a authored by Warren Dukes's avatar Warren Dukes

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
parent 41b63bbe
...@@ -118,7 +118,6 @@ int getOssVolumeLevel() { ...@@ -118,7 +118,6 @@ int getOssVolumeLevel() {
int left, right, level; int left, right, level;
if(ioctl(volume_ossFd,MIXER_READ(volume_ossControl),&level) < 0) { if(ioctl(volume_ossFd,MIXER_READ(volume_ossControl),&level) < 0) {
while(close(volume_ossFd)<0 && errno==EINTR);
ERROR("unable to read volume\n"); ERROR("unable to read volume\n");
return -1; return -1;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment