diff options
author | Max Kellermann <max@duempel.org> | 2013-10-20 23:09:51 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-20 23:09:51 +0200 |
commit | 0e4d2e7277bc2adf18dd1e719ec4ce684f86d72b (patch) | |
tree | 181aa272821ace382565b3c3465949101b98e253 /src/mixer/AlsaMixerPlugin.cxx | |
parent | 2bbff77e489ae72a332b18b122844bd761d75764 (diff) | |
download | mpd-0e4d2e7277bc2adf18dd1e719ec4ce684f86d72b.tar.gz mpd-0e4d2e7277bc2adf18dd1e719ec4ce684f86d72b.tar.xz mpd-0e4d2e7277bc2adf18dd1e719ec4ce684f86d72b.zip |
Util/ASCII: add function StringEqualsCaseASCII()
Replaces GLib's g_ascii_strcasecmp().
Diffstat (limited to 'src/mixer/AlsaMixerPlugin.cxx')
-rw-r--r-- | src/mixer/AlsaMixerPlugin.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mixer/AlsaMixerPlugin.cxx b/src/mixer/AlsaMixerPlugin.cxx index 05d70c4c0..f651e94ce 100644 --- a/src/mixer/AlsaMixerPlugin.cxx +++ b/src/mixer/AlsaMixerPlugin.cxx @@ -24,6 +24,7 @@ #include "Main.hxx" #include "event/MultiSocketMonitor.hxx" #include "event/Loop.hxx" +#include "util/ASCII.hxx" #include "util/ReusableArray.hxx" #include "util/Error.hxx" #include "util/Domain.hxx" @@ -31,7 +32,6 @@ #include <algorithm> -#include <glib.h> #include <alsa/asoundlib.h> #define VOLUME_MIXER_ALSA_DEFAULT "default" @@ -197,8 +197,8 @@ alsa_mixer_lookup_elem(snd_mixer_t *handle, const char *name, unsigned idx) for (snd_mixer_elem_t *elem = snd_mixer_first_elem(handle); elem != NULL; elem = snd_mixer_elem_next(elem)) { if (snd_mixer_elem_get_type(elem) == SND_MIXER_ELEM_SIMPLE && - g_ascii_strcasecmp(snd_mixer_selem_get_name(elem), - name) == 0 && + StringEqualsCaseASCII(snd_mixer_selem_get_name(elem), + name) && snd_mixer_selem_get_index(elem) == idx) return elem; } |