aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/mad_plugin.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-04-28 09:29:39 +0200
committerMax Kellermann <max@duempel.org>2009-04-28 09:29:39 +0200
commitc434379d7977dfe4c10f964949beedc2d7ccce47 (patch)
tree830b68c3d3824c5f15e5a8fc597d1ad8051fced7 /src/decoder/mad_plugin.c
parentd5b3dd36fdc1f2924398f8c8b948f1b5cd9068a0 (diff)
downloadmpd-c434379d7977dfe4c10f964949beedc2d7ccce47.tar.gz
mpd-c434379d7977dfe4c10f964949beedc2d7ccce47.tar.xz
mpd-c434379d7977dfe4c10f964949beedc2d7ccce47.zip
mad_decoder: use g_ascii_strcasecmp() instead of strcasecmp()
strcasecmp() is locale dependent, making it a bad choice for internal string comparisons.
Diffstat (limited to '')
-rw-r--r--src/decoder/mad_plugin.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/decoder/mad_plugin.c b/src/decoder/mad_plugin.c
index 2400f27d0..c6b9d32d3 100644
--- a/src/decoder/mad_plugin.c
+++ b/src/decoder/mad_plugin.c
@@ -320,16 +320,16 @@ parse_id3_replay_gain_info(struct id3_tag *tag)
id3_ucs4_latin1duplicate(id3_field_getstring
(&frame->fields[2]));
- if (strcasecmp(key, "replaygain_track_gain") == 0) {
+ if (g_ascii_strcasecmp(key, "replaygain_track_gain") == 0) {
replay_gain_info->tuples[REPLAY_GAIN_TRACK].gain = atof(value);
found = true;
- } else if (strcasecmp(key, "replaygain_album_gain") == 0) {
+ } else if (g_ascii_strcasecmp(key, "replaygain_album_gain") == 0) {
replay_gain_info->tuples[REPLAY_GAIN_ALBUM].gain = atof(value);
found = true;
- } else if (strcasecmp(key, "replaygain_track_peak") == 0) {
+ } else if (g_ascii_strcasecmp(key, "replaygain_track_peak") == 0) {
replay_gain_info->tuples[REPLAY_GAIN_TRACK].peak = atof(value);
found = true;
- } else if (strcasecmp(key, "replaygain_album_peak") == 0) {
+ } else if (g_ascii_strcasecmp(key, "replaygain_album_peak") == 0) {
replay_gain_info->tuples[REPLAY_GAIN_ALBUM].peak = atof(value);
found = true;
}