Commit 3e46c6aa authored by Warren Dukes's avatar Warren Dukes

strcasecmp for mixer_control

git-svn-id: https://svn.musicpd.org/mpd/trunk@436 09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent 63144879
......@@ -87,7 +87,7 @@ int prepOssMixer(char * device) {
/* eliminate spaces at the end */
j = strlen(dup)-1;
while(j>=0 && dup[j]==' ') dup[j--] = '\0';
if(strcmp(dup,getConf()[CONF_MIXER_CONTROL])==0) {
if(strcasecmp(dup,getConf()[CONF_MIXER_CONTROL])==0) {
free(dup);
break;
}
......@@ -203,7 +203,7 @@ int prepAlsaMixer(char * card) {
if(snd_mixer_elem_get_type(elem)
==SND_MIXER_ELEM_SIMPLE)
{
if(strcmp(getConf()[CONF_MIXER_CONTROL],
if(strcasecmp(getConf()[CONF_MIXER_CONTROL],
snd_mixer_selem_get_name(elem))
==0)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment