[gst-cvs] gst-plugins-good: oss4: Use g_ascii_strcasecmp() instead of the deprecated g_strcasecmp()
Sebastian Dröge
slomo at kemper.freedesktop.org
Mon Jun 14 04:48:50 PDT 2010
Module: gst-plugins-good
Branch: master
Commit: a88acc848e3d67bcb65bad614fa1de8ed041f310
URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=a88acc848e3d67bcb65bad614fa1de8ed041f310
Author: Sebastian Dröge <sebastian.droege at collabora.co.uk>
Date: Mon Jun 14 13:48:28 2010 +0200
oss4: Use g_ascii_strcasecmp() instead of the deprecated g_strcasecmp()
---
sys/oss4/oss4-mixer.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/sys/oss4/oss4-mixer.c b/sys/oss4/oss4-mixer.c
index 6c6cd01..bc2d039 100644
--- a/sys/oss4/oss4-mixer.c
+++ b/sys/oss4/oss4-mixer.c
@@ -910,7 +910,7 @@ gst_oss4_mixer_control_get_translated_name (GstOss4MixerControl * mc)
if (*ptr == '.')
ptr++;
for (i = 0; i < G_N_ELEMENTS (labels); ++i) {
- if (g_strcasecmp (ptr, labels[i].oss_name) == 0) {
+ if (g_ascii_strcasecmp (ptr, labels[i].oss_name) == 0) {
g_strlcpy (name, _(labels[i].label), sizeof (name));
goto append_suffixes;
}
@@ -943,7 +943,7 @@ gst_oss4_mixer_control_get_translated_option (const gchar * name)
{
int i;
for (i = 0; i < G_N_ELEMENTS (labels); ++i) {
- if (g_strcasecmp (name, labels[i].oss_name) == 0) {
+ if (g_ascii_strcasecmp (name, labels[i].oss_name) == 0) {
return _(labels[i].label);
}
}
More information about the Gstreamer-commits
mailing list