diff options
author | Max Kellermann <max@duempel.org> | 2009-01-18 19:37:27 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-01-18 19:37:27 +0100 |
commit | a531a1e65075d27574bc31d4bac7ab20cb750efd (patch) | |
tree | f06ad8e7359f0845d94d2b8a6f655a0cceb744c2 /src/output/oss_plugin.c | |
parent | 73e466cfef6497aff840cfac35d80d74e7b0fd0c (diff) | |
download | mpd-a531a1e65075d27574bc31d4bac7ab20cb750efd.tar.gz mpd-a531a1e65075d27574bc31d4bac7ab20cb750efd.tar.xz mpd-a531a1e65075d27574bc31d4bac7ab20cb750efd.zip |
conf: added config_get_block_string()
This replaces lots of getBlockParam() invocations.
Diffstat (limited to '')
-rw-r--r-- | src/output/oss_plugin.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/output/oss_plugin.c b/src/output/oss_plugin.c index f66280752..e83a05c5a 100644 --- a/src/output/oss_plugin.c +++ b/src/output/oss_plugin.c @@ -393,10 +393,11 @@ oss_initDriver(G_GNUC_UNUSED struct audio_output *audioOutput, struct config_param *param) { if (param) { - struct block_param *bp = getBlockParam(param, "device"); - if (bp) { + const char *device = + config_get_block_string(param, "device", NULL); + if (device != NULL) { OssData *od = newOssData(); - od->device = bp->value; + od->device = device; mixer_configure(&od->mixer, param); return od; } |