summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorJan Schmidt <thaytan@noraisin.net>2009-07-16 13:55:14 +0100
committerJan Schmidt <thaytan@noraisin.net>2009-07-16 13:55:14 +0100
commit9deb7346316559ce25e2fb5458905a8c0cedd8c1 (patch)
tree7bc43e09ccc85ac79f13f052b9d8323f0dc34eea /sys
parent4109c2193fb99277b12aef3a3d9ec7a51465f19b (diff)
downloadgst-plugins-bad-9deb7346316559ce25e2fb5458905a8c0cedd8c1.tar.gz
gst-plugins-bad-9deb7346316559ce25e2fb5458905a8c0cedd8c1.tar.bz2
gst-plugins-bad-9deb7346316559ce25e2fb5458905a8c0cedd8c1.zip
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.
Diffstat (limited to 'sys')
-rw-r--r--sys/oss4/oss4-mixer.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/oss4/oss4-mixer.c b/sys/oss4/oss4-mixer.c
index ded496b3..a67bb102 100644
--- a/sys/oss4/oss4-mixer.c
+++ b/sys/oss4/oss4-mixer.c
@@ -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);