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
This commit is contained in:
parent
745fa0c284
commit
95c411224a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user