diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-03-24 00:53:12 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-03-24 00:53:12 +0000 |
commit | 3e46c6aaaddb2252103ee305109bb0cda5a6536c (patch) | |
tree | b9449353baf0ea714962f412c2202e13a547dfbb /src/volume.c | |
parent | 631448798218713601ee8071de71c718028a9dc8 (diff) | |
download | mpd-3e46c6aaaddb2252103ee305109bb0cda5a6536c.tar.gz mpd-3e46c6aaaddb2252103ee305109bb0cda5a6536c.tar.xz mpd-3e46c6aaaddb2252103ee305109bb0cda5a6536c.zip |
strcasecmp for mixer_control
git-svn-id: https://svn.musicpd.org/mpd/trunk@436 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r-- | src/volume.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/volume.c b/src/volume.c index d38a2c2c8..74c84a698 100644 --- a/src/volume.c +++ b/src/volume.c @@ -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) { |