From 4a74e341ecc7369c3c48b653e753a28b6c20eb64 Mon Sep 17 00:00:00 2001 From: James Andrewartha Date: Wed, 15 Apr 2009 19:28:53 +0100 Subject: [PATCH] sunaudio: remove some unused variables and goto labels Fixes #579070. --- sys/sunaudio/gstsunaudiomixerctrl.c | 4 ---- sys/sunaudio/gstsunaudiosink.c | 5 ----- 2 files changed, 9 deletions(-) diff --git a/sys/sunaudio/gstsunaudiomixerctrl.c b/sys/sunaudio/gstsunaudiomixerctrl.c index 5897820..3ad33ad 100644 --- a/sys/sunaudio/gstsunaudiomixerctrl.c +++ b/sys/sunaudio/gstsunaudiomixerctrl.c @@ -273,14 +273,10 @@ gst_sunaudiomixer_ctrl_set_volume (GstSunAudioMixerCtrl * mixer, float ratio; - gchar buf[100]; - struct audio_info audioinfo; GstSunAudioMixerTrack *sunaudiotrack = GST_SUNAUDIO_MIXER_TRACK (track); - gint temp[2]; - l_real_gain = volumes[0]; r_real_gain = volumes[1]; diff --git a/sys/sunaudio/gstsunaudiosink.c b/sys/sunaudio/gstsunaudiosink.c index 8bf129e..2dd56c2 100644 --- a/sys/sunaudio/gstsunaudiosink.c +++ b/sys/sunaudio/gstsunaudiosink.c @@ -203,7 +203,6 @@ gst_sunaudiosink_class_init (GstSunAudioSinkClass * klass) static void gst_sunaudiosink_init (GstSunAudioSink * sunaudiosink) { - GstBaseAudioSink *ba_sink = GST_BASE_AUDIO_SINK (sunaudiosink); const char *audiodev; GST_DEBUG_OBJECT (sunaudiosink, "initializing sunaudiosink"); @@ -509,10 +508,6 @@ write_error: GST_ELEMENT_ERROR (sink, RESOURCE, OPEN_WRITE, (NULL), ("Playback error on device '%s': %s", sink->device, strerror (errno))); return; -poll_failed: - GST_ELEMENT_ERROR (sink, RESOURCE, OPEN_WRITE, (NULL), - ("Playback error on device '%s': %s", sink->device, strerror (errno))); - return; } static guint -- 2.7.4