[0.11] gst-plugins-good: ac3parse: remove unused variable

Sebastian Dröge slomo at kemper.freedesktop.org
Tue Jan 10 05:33:25 PST 2012


Module: gst-plugins-good
Branch: 0.11
Commit: 4f98b4ec853cface214d3b4a5e9008986c8d2ef2
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=4f98b4ec853cface214d3b4a5e9008986c8d2ef2

Author: Oleksij Rempel (Alexey Fisher) <bug-track at fisher-privat.net>
Date:   Wed Dec 21 09:09:27 2011 +0100

ac3parse: remove unused variable

remove unused variable to fix compile error:
make -C audioparsers
make[3]: Betrete Verzeichnis '/home/lex/tmp/gst-plugins-good/gst/audioparsers'
  CC     libgstaudioparsers_la-gstaacparse.lo
gstaacparse.c: In function 'gst_aac_parse_read_loas_audio_specific_config':
gstaacparse.c:446:12: error: variable 'sbr' set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors

Signed-off-by: Oleksij Rempel (Alexey Fisher) <bug-track at fisher-privat.net>

---

 gst/audioparsers/gstaacparse.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/gst/audioparsers/gstaacparse.c b/gst/audioparsers/gstaacparse.c
index 8a0d6f6..f1e4de2 100644
--- a/gst/audioparsers/gstaacparse.c
+++ b/gst/audioparsers/gstaacparse.c
@@ -443,7 +443,6 @@ gst_aac_parse_read_loas_audio_specific_config (GstAacParse * aacparse,
     GstBitReader * br, gint * sample_rate, gint * channels, guint32 * bits)
 {
   guint8 audio_object_type, channel_configuration;
-  gboolean sbr = FALSE;
 
   if (!gst_aac_parse_get_audio_object_type (aacparse, br, &audio_object_type))
     return FALSE;
@@ -461,7 +460,6 @@ gst_aac_parse_read_loas_audio_specific_config (GstAacParse * aacparse,
   if (audio_object_type == 5) {
     GST_LOG_OBJECT (aacparse,
         "Audio object type 5, so rereading sampling rate...");
-    sbr = TRUE;
     if (!gst_aac_parse_get_audio_sample_rate (aacparse, br, sample_rate))
       return FALSE;
   }



More information about the gstreamer-commits mailing list