Skip to content

Commit

Permalink
ac3parse: remove unused variable
Browse files Browse the repository at this point in the history
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@fisher-privat.net>
  • Loading branch information
olerem authored and Vincent Penquerc'h committed Dec 21, 2011
1 parent 93ac6fb commit 4f98b4e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions gst/audioparsers/gstaacparse.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
}
Expand Down

0 comments on commit 4f98b4e

Please sign in to comment.