aboutsummaryrefslogtreecommitdiffstats
path: root/src/mixer
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-03-26 19:50:02 +0100
committerMax Kellermann <max@duempel.org>2009-03-26 19:50:02 +0100
commitcd4964cdeee41abab7773fc0c9dd6d5592351726 (patch)
treece805b597caa7151fb922c3e3cd22de056d8a6b5 /src/mixer
parent74273d419a7157d59682abc9a459cbeb793858c4 (diff)
downloadmpd-cd4964cdeee41abab7773fc0c9dd6d5592351726.tar.gz
mpd-cd4964cdeee41abab7773fc0c9dd6d5592351726.tar.xz
mpd-cd4964cdeee41abab7773fc0c9dd6d5592351726.zip
pulse: don't check config_param!=NULL
The conf.h functions deal well with config_param==NULL and will return the specified default value then.
Diffstat (limited to 'src/mixer')
-rw-r--r--src/mixer/pulse_mixer.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/mixer/pulse_mixer.c b/src/mixer/pulse_mixer.c
index ad84d7301..883a7ffd8 100644
--- a/src/mixer/pulse_mixer.c
+++ b/src/mixer/pulse_mixer.c
@@ -170,12 +170,9 @@ pulse_mixer_init(const struct config_param *param)
pm->volume = g_new(struct pa_cvolume,1);
- pm->server = param != NULL
- ? config_dup_block_string(param, "server", NULL) : NULL;
- pm->sink = param != NULL
- ? config_dup_block_string(param, "sink", NULL) : NULL;
- pm->output_name = param != NULL
- ? config_dup_block_string(param, "name", NULL) : NULL;
+ pm->server = config_dup_block_string(param, "server", NULL);
+ pm->sink = config_dup_block_string(param, "sink", NULL);
+ pm->output_name = config_dup_block_string(param, "name", NULL);
return &pm->base;
}