mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 15:48:23 +00:00
oss4: Use g_ascii_strcasecmp() instead of the deprecated g_strcasecmp()
This commit is contained in:
parent
584eb7aa9a
commit
a88acc848e
1 changed files with 2 additions and 2 deletions
|
@ -910,7 +910,7 @@ gst_oss4_mixer_control_get_translated_name (GstOss4MixerControl * mc)
|
||||||
if (*ptr == '.')
|
if (*ptr == '.')
|
||||||
ptr++;
|
ptr++;
|
||||||
for (i = 0; i < G_N_ELEMENTS (labels); ++i) {
|
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));
|
g_strlcpy (name, _(labels[i].label), sizeof (name));
|
||||||
goto append_suffixes;
|
goto append_suffixes;
|
||||||
}
|
}
|
||||||
|
@ -943,7 +943,7 @@ gst_oss4_mixer_control_get_translated_option (const gchar * name)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
for (i = 0; i < G_N_ELEMENTS (labels); ++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);
|
return _(labels[i].label);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue