[gst-cvs] gst-plugins-bad: tta: Remove dead assignments and useless variable

Edward Hervey bilboed at kemper.freedesktop.org
Thu Nov 25 10:40:58 PST 2010


Module: gst-plugins-bad
Branch: master
Commit: ba40212297e346e3f33b49199304a25d02ca99fd
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=ba40212297e346e3f33b49199304a25d02ca99fd

Author: Edward Hervey <bilboed at bilboed.com>
Date:   Thu Nov 25 19:25:27 2010 +0100

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 31c05e9..e2c1f5a 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 3d64995..fc2b02b 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);
 





More information about the Gstreamer-commits mailing list