From 5ff86cd79244bdacbf856a076e9719b0e6ffc13d Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Wed, 12 Sep 2007 09:13:39 +0000 Subject: ext/gconf/gstgconfaudiosink.c: Fix warning when building without debug. Original commit message from CVS: * ext/gconf/gstgconfaudiosink.c: Fix warning when building without debug. * sys/oss/gstossmixertrack.c: Use const like in alsamixertrack.c (fixes warnings). --- sys/oss/gstossmixertrack.c | 80 ++++++++++++++++------------------------------ 1 file changed, 28 insertions(+), 52 deletions(-) (limited to 'sys/oss') diff --git a/sys/oss/gstossmixertrack.c b/sys/oss/gstossmixertrack.c index b8333864..4b1d962f 100644 --- a/sys/oss/gstossmixertrack.c +++ b/sys/oss/gstossmixertrack.c @@ -84,9 +84,10 @@ fill_labels (void) { gint i, pos; gchar *origs[SOUND_MIXER_NRDEVICES] = SOUND_DEVICE_LABELS; - struct + const struct { - gchar *given, *wanted; + const gchar *given; + const gchar *wanted; } cases[] = { /* Note: this list is simply ripped from soundcard.h. For @@ -94,56 +95,31 @@ fill_labels (void) * etc.) - feel free to add them. That's the reason why * I'm doing this in such a horribly complicated way. */ { - "Vol ", _("Volume")} - , { - "Bass ", _("Bass")} - , { - "Trebl", _("Treble")} - , { - "Synth", _("Synth")} - , { - "Pcm ", _("PCM")} - , { - "Spkr ", _("Speaker")} - , { - "Line ", _("Line-in")} - , { - "Mic ", _("Microphone")} - , { - "CD ", _("CD")} - , { - "Mix ", _("Mixer")} - , { - "Pcm2 ", _("PCM-2")} - , { - "Rec ", _("Record")} - , { - "IGain", _("In-gain")} - , { - "OGain", _("Out-gain")} - , { - "Line1", _("Line-1")} - , { - "Line2", _("Line-2")} - , { - "Line3", _("Line-3")} - , { - "Digital1", _("Digital-1")} - , { - "Digital2", _("Digital-2")} - , { - "Digital3", _("Digital-3")} - , { - "PhoneIn", _("Phone-in")} - , { - "PhoneOut", _("Phone-out")} - , { - "Video", _("Video")} - , { - "Radio", _("Radio")} - , { - "Monitor", _("Monitor")} - , { + "Vol ", _("Volume")}, { + "Bass ", _("Bass")}, { + "Trebl", _("Treble")}, { + "Synth", _("Synth")}, { + "Pcm ", _("PCM")}, { + "Spkr ", _("Speaker")}, { + "Line ", _("Line-in")}, { + "Mic ", _("Microphone")}, { + "CD ", _("CD")}, { + "Mix ", _("Mixer")}, { + "Pcm2 ", _("PCM-2")}, { + "Rec ", _("Record")}, { + "IGain", _("In-gain")}, { + "OGain", _("Out-gain")}, { + "Line1", _("Line-1")}, { + "Line2", _("Line-2")}, { + "Line3", _("Line-3")}, { + "Digital1", _("Digital-1")}, { + "Digital2", _("Digital-2")}, { + "Digital3", _("Digital-3")}, { + "PhoneIn", _("Phone-in")}, { + "PhoneOut", _("Phone-out")}, { + "Video", _("Video")}, { + "Radio", _("Radio")}, { + "Monitor", _("Monitor")}, { NULL, NULL} }; -- cgit