aboutsummaryrefslogtreecommitdiffstats
path: root/src/audioOutputs
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-11 12:40:48 +0200
committerMax Kellermann <max@duempel.org>2008-10-11 12:40:48 +0200
commit215d8aa8f6e83d2dd89e185ce52a262413a7dfe0 (patch)
tree49d19d1ee978fd5f4638365e59a955c9d75ede40 /src/audioOutputs
parent17d9c1708b5afe32c362fdaba114e74f64a7dd06 (diff)
downloadmpd-215d8aa8f6e83d2dd89e185ce52a262413a7dfe0.tar.gz
mpd-215d8aa8f6e83d2dd89e185ce52a262413a7dfe0.tar.xz
mpd-215d8aa8f6e83d2dd89e185ce52a262413a7dfe0.zip
oss: fix opening default OSS device
Leftover from the output API changes: oss_open_default() was changed to return a void*, but it still returned "0" to report success. Report the OssData pointer instead.
Diffstat (limited to '')
-rw-r--r--src/audioOutputs/audioOutput_oss.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/audioOutputs/audioOutput_oss.c b/src/audioOutputs/audioOutput_oss.c
index ed7d31c30..2a5842b25 100644
--- a/src/audioOutputs/audioOutput_oss.c
+++ b/src/audioOutputs/audioOutput_oss.c
@@ -346,7 +346,7 @@ static void *oss_open_default(ConfigParam *param)
if (ret[i] == 0) {
OssData *od = newOssData();
od->device = default_devices[i];
- return 0;
+ return od;
}
}