aboutsummaryrefslogtreecommitdiffstats
path: root/src/audioOutputs
diff options
context:
space:
mode:
authorJ. Alexander Treuman <jat@spatialrift.net>2007-04-09 13:05:50 +0000
committerJ. Alexander Treuman <jat@spatialrift.net>2007-04-09 13:05:50 +0000
commit95c411224a18cdf0fb16c00a79e87308b3a2f799 (patch)
tree1511d2c99393259d7869ace93fdd4105e62ab5a6 /src/audioOutputs
parent745fa0c284c3d26d3b62de13cb53b75b47c4488a (diff)
downloadmpd-95c411224a18cdf0fb16c00a79e87308b3a2f799.tar.gz
mpd-95c411224a18cdf0fb16c00a79e87308b3a2f799.tar.xz
mpd-95c411224a18cdf0fb16c00a79e87308b3a2f799.zip
Don't allow "true" as a value for use_mmap for consistency with other "yes
or no" parameters. git-svn-id: https://svn.musicpd.org/mpd/trunk@5896 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/audioOutputs/audioOutput_alsa.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/audioOutputs/audioOutput_alsa.c b/src/audioOutputs/audioOutput_alsa.c
index 295cecdf9..3ade3df46 100644
--- a/src/audioOutputs/audioOutput_alsa.c
+++ b/src/audioOutputs/audioOutput_alsa.c
@@ -85,8 +85,7 @@ static int alsa_initDriver(AudioOutput * audioOutput, ConfigParam * param)
ad->device = bp ? xstrdup(bp->value) : xstrdup("default");
if ((bp = getBlockParam(param, "use_mmap")) &&
- (!strcasecmp(bp->value, "yes") ||
- !strcasecmp(bp->value, "true")))
+ !strcasecmp(bp->value, "yes"))
ad->useMmap = 1;
if ((bp = getBlockParam(param, "buffer_time")))
ad->buffer_time = atoi(bp->value);