tta: Fix set-but-unused warnings

This commit is contained in:
Olivier Crête 2011-07-12 18:09:26 -04:00
parent b44cb0a048
commit 8f6b55f920

View file

@ -106,7 +106,6 @@ gst_tta_dec_setcaps (GstPad * pad, GstCaps * caps)
GstTtaDec *ttadec = GST_TTA_DEC (gst_pad_get_parent (pad));
GstStructure *structure = gst_caps_get_structure (caps, 0);
GstCaps *srccaps;
guint64 outsize;
gint bits, channels;
gint32 samplerate;
@ -136,8 +135,6 @@ gst_tta_dec_setcaps (GstPad * pad, GstCaps * caps)
ttadec->tta = g_malloc (ttadec->channels * sizeof (decoder));
ttadec->cache = g_malloc (ttadec->channels * sizeof (long));
outsize = ttadec->channels * ttadec->frame_length * ttadec->bytes;
ttadec->decdata =
(guchar *) g_malloc (ttadec->channels * ttadec->frame_length *
ttadec->bytes * sizeof (guchar));