From 8583a3bc4e9af2a1be06c82422a7cac1470341ce Mon Sep 17 00:00:00 2001 From: Warren Dukes Date: Sat, 12 Mar 2005 03:10:09 +0000 Subject: if no audioOutput specified, we no attempt to detect if there exists a usable oss or alsa device git-svn-id: https://svn.musicpd.org/mpd/trunk@3057 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/audio.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/audio.c') diff --git a/src/audio.c b/src/audio.c index 728f93718..c3b87fa5b 100644 --- a/src/audio.c +++ b/src/audio.c @@ -79,7 +79,9 @@ void initAudioDriver() { myAudioDevicesEnabled[i] = 1; } - while((param = getNextConfigParam(CONF_AUDIO_OUTPUT, param))) { + param = getNextConfigParam(CONF_AUDIO_OUTPUT, param); + + do { if(audioOutputArraySize == AUDIO_MAX_DEVICES) { ERROR("only up to 255 audio output devices are " "supported"); @@ -93,12 +95,12 @@ void initAudioDriver() { audioOutputArray[i] = newAudioOutput(param); - if(!audioOutputArray[i]) { + if(!audioOutputArray[i] && param) { ERROR("problems configuring output device defined at " "line %i\n", param->line); exit(EXIT_FAILURE); } - } + } while((param = getNextConfigParam(CONF_AUDIO_OUTPUT, param))); } void getOutputAudioFormat(AudioFormat * inAudioFormat, -- cgit v1.2.3