aboutsummaryrefslogtreecommitdiffstats
path: root/src/playlist/EmbeddedCuePlaylistPlugin.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-20 23:09:51 +0200
committerMax Kellermann <max@duempel.org>2013-10-20 23:09:51 +0200
commit0e4d2e7277bc2adf18dd1e719ec4ce684f86d72b (patch)
tree181aa272821ace382565b3c3465949101b98e253 /src/playlist/EmbeddedCuePlaylistPlugin.cxx
parent2bbff77e489ae72a332b18b122844bd761d75764 (diff)
downloadmpd-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/playlist/EmbeddedCuePlaylistPlugin.cxx')
-rw-r--r--src/playlist/EmbeddedCuePlaylistPlugin.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/playlist/EmbeddedCuePlaylistPlugin.cxx b/src/playlist/EmbeddedCuePlaylistPlugin.cxx
index fe3b4ca12..50390dbd6 100644
--- a/src/playlist/EmbeddedCuePlaylistPlugin.cxx
+++ b/src/playlist/EmbeddedCuePlaylistPlugin.cxx
@@ -35,6 +35,7 @@
#include "TagFile.hxx"
#include "cue/CueParser.hxx"
#include "fs/Traits.hxx"
+#include "util/ASCII.hxx"
#include <glib.h>
#include <assert.h>
@@ -81,7 +82,7 @@ embcue_tag_pair(const char *name, const char *value, void *ctx)
EmbeddedCuePlaylist *playlist = (EmbeddedCuePlaylist *)ctx;
if (playlist->cuesheet == NULL &&
- g_ascii_strcasecmp(name, "cuesheet") == 0)
+ StringEqualsCaseASCII(name, "cuesheet"))
playlist->cuesheet = g_strdup(value);
}