mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
oss4: Attempt to fix a compiler warning
Don't store a const gchar * in a non-const gchar * local var. Also, make the translation string function static since it's only used in the one file.
This commit is contained in:
parent
2a402de32d
commit
039604b11f
1 changed files with 3 additions and 4 deletions
|
@ -924,14 +924,13 @@ gst_oss4_mixer_control_get_translated_name (GstOss4MixerControl * mc)
|
|||
return g_quark_to_string (g_quark_from_string (scratch)); /* eek */
|
||||
}
|
||||
|
||||
const gchar *
|
||||
gst_oss4_mixer_control_get_translated_option (gchar * name)
|
||||
static const gchar *
|
||||
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) {
|
||||
name = _(labels[i].label);
|
||||
return (name);
|
||||
return _(labels[i].label);
|
||||
}
|
||||
}
|
||||
return (name);
|
||||
|
|
Loading…
Reference in a new issue