diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-02-29 08:37:21 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-02-29 08:37:21 +0000 |
commit | f515692aa93e40a72aeb1575c135dc31b44704df (patch) | |
tree | 65ea186559d09517c98f8202f740391d92cab0c8 | |
parent | 41b63bbe47760c9e313f1397b7c0314c258153b1 (diff) | |
download | mpd-f515692aa93e40a72aeb1575c135dc31b44704df.tar.gz mpd-f515692aa93e40a72aeb1575c135dc31b44704df.tar.xz mpd-f515692aa93e40a72aeb1575c135dc31b44704df.zip |
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
Diffstat (limited to '')
-rw-r--r-- | src/volume.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/volume.c b/src/volume.c index 706b686b6..16f130650 100644 --- a/src/volume.c +++ b/src/volume.c @@ -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; } |