aboutsummaryrefslogtreecommitdiffstats
path: root/src/audioOutputs/audioOutput_alsa.c
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2007-09-05 23:59:36 +0000
committerEric Wong <normalperson@yhbt.net>2007-09-05 23:59:36 +0000
commitb2ae8da5097b637f9b1a1a6ae98eee6a82e2cfe4 (patch)
tree32bf36b1c5d08c41c749d4907acd1c67868b8723 /src/audioOutputs/audioOutput_alsa.c
parent4a2122eaf4bffdf7ebb012fe6348602d8e54ced0 (diff)
downloadmpd-b2ae8da5097b637f9b1a1a6ae98eee6a82e2cfe4.tar.gz
mpd-b2ae8da5097b637f9b1a1a6ae98eee6a82e2cfe4.tar.xz
mpd-b2ae8da5097b637f9b1a1a6ae98eee6a82e2cfe4.zip
conf: use getBoolBlockParam for block params, too
git-svn-id: https://svn.musicpd.org/mpd/trunk@6858 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/audioOutputs/audioOutput_alsa.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/audioOutputs/audioOutput_alsa.c b/src/audioOutputs/audioOutput_alsa.c
index 8c8f73b42..f22be742e 100644
--- a/src/audioOutputs/audioOutput_alsa.c
+++ b/src/audioOutputs/audioOutput_alsa.c
@@ -84,9 +84,9 @@ static int alsa_initDriver(AudioOutput * audioOutput, ConfigParam * param)
BlockParam *bp = getBlockParam(param, "device");
ad->device = bp ? xstrdup(bp->value) : xstrdup("default");
- if ((bp = getBlockParam(param, "use_mmap")) &&
- !strcasecmp(bp->value, "yes"))
- ad->useMmap = 1;
+ ad->useMmap = getBoolBlockParam(param, "use_mmap", 1);
+ if (ad->useMmap == CONF_BOOL_UNSET)
+ ad->useMmap = 0;
if ((bp = getBlockParam(param, "buffer_time")))
ad->buffer_time = atoi(bp->value);
if ((bp = getBlockParam(param, "period_time")))