diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-11-02 02:03:00 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-11-02 02:03:00 +0000 |
commit | c269e18813f0f08c957f5c490c02bf4fa9092343 (patch) | |
tree | 46cb4b2427d4e5a634ef7005f1e703c822898f26 /src/audioOutput_oss.c | |
parent | b0d7d6b06fffe784d49d34f1a715ba0ff07d0bd4 (diff) | |
download | mpd-c269e18813f0f08c957f5c490c02bf4fa9092343.tar.gz mpd-c269e18813f0f08c957f5c490c02bf4fa9092343.tar.xz mpd-c269e18813f0f08c957f5c490c02bf4fa9092343.zip |
now np's OSS stuff actually works
git-svn-id: https://svn.musicpd.org/mpd/trunk@2459 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r-- | src/audioOutput_oss.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/audioOutput_oss.c b/src/audioOutput_oss.c index f73e1a38a..c677c90d2 100644 --- a/src/audioOutput_oss.c +++ b/src/audioOutput_oss.c @@ -75,11 +75,13 @@ static int oss_initDriver(AudioOutput * audioOutput, ConfigParam * param) { if(!bp) { int fd; - if(0 <= (fd = open("/dev/sound/dsp", O_WRONLY | O_NONBLOCK))) { + if(0 <= (fd = open("/dev/sound/dsp", O_WRONLY))) { od->device = strdup("/dev/sound/dsp"); + close(fd); } - else if(0 <= (fd = open("/dev/dsp", O_WRONLY | O_NONBLOCK))) { + else if(0 <= (fd = open("/dev/dsp", O_WRONLY))) { od->device = strdup("/dev/dsp"); + close(fd); } else { ERROR("Error trying to open default OSS device " @@ -89,7 +91,6 @@ static int oss_initDriver(AudioOutput * audioOutput, ConfigParam * param) { exit(EXIT_FAILURE); } - close(od->fd); od->fd = -1; return 0; |