From ba40212297e346e3f33b49199304a25d02ca99fd Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Thu, 25 Nov 2010 19:25:27 +0100 Subject: [PATCH] tta: Remove dead assignments and useless variable --- gst/tta/gstttadec.c | 2 -- gst/tta/gstttaparse.c | 8 +++----- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/gst/tta/gstttadec.c b/gst/tta/gstttadec.c index 31c05e96bd..e2c1f5a37a 100644 --- a/gst/tta/gstttadec.c +++ b/gst/tta/gstttadec.c @@ -199,10 +199,8 @@ static void gst_tta_dec_class_init (GstTtaDecClass * klass) { GObjectClass *gobject_class; - GstElementClass *gstelement_class; gobject_class = (GObjectClass *) klass; - gstelement_class = (GstElementClass *) klass; parent = g_type_class_peek_parent (klass); diff --git a/gst/tta/gstttaparse.c b/gst/tta/gstttaparse.c index 3d64995c66..fc2b02b308 100644 --- a/gst/tta/gstttaparse.c +++ b/gst/tta/gstttaparse.c @@ -319,7 +319,6 @@ gst_tta_parse_activate_pull (GstPad * pad, gboolean active) static GstFlowReturn gst_tta_parse_parse_header (GstTtaParse * ttaparse) { - GstFlowReturn res; guchar *data; GstBuffer *buf = NULL; guint32 crc; @@ -330,8 +329,7 @@ gst_tta_parse_parse_header (GstTtaParse * ttaparse) guint32 offset; GstEvent *discont; - if ((res = gst_pad_pull_range (ttaparse->sinkpad, - 0, 22, &buf)) != GST_FLOW_OK) + if (gst_pad_pull_range (ttaparse->sinkpad, 0, 22, &buf) != GST_FLOW_OK) goto pull_fail; data = GST_BUFFER_DATA (buf); ttaparse->channels = GST_READ_UINT16_LE (data + 6); @@ -349,8 +347,8 @@ gst_tta_parse_parse_header (GstTtaParse * ttaparse) ttaparse->index = (GstTtaIndex *) g_malloc (num_frames * sizeof (GstTtaIndex)); - if ((res = gst_pad_pull_range (ttaparse->sinkpad, - 22, num_frames * 4 + 4, &buf)) != GST_FLOW_OK) + if (gst_pad_pull_range (ttaparse->sinkpad, + 22, num_frames * 4 + 4, &buf) != GST_FLOW_OK) goto pull_fail; data = GST_BUFFER_DATA (buf);