goom2k1: remove variables not needed anymore
authorLuis de Bethencourt <luis.bg@samsung.com>
Tue, 2 Jun 2015 17:09:48 +0000 (18:09 +0100)
committerLuis de Bethencourt <luis.bg@samsung.com>
Tue, 2 Jun 2015 17:09:48 +0000 (18:09 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=742875

gst/goom2k1/gstgoom.c
gst/goom2k1/gstgoom.h

index 90c2dc9..b22c8a7 100644 (file)
@@ -120,11 +120,7 @@ gst_goom_init (GstGoom * goom)
 {
   goom->width = DEFAULT_WIDTH;
   goom->height = DEFAULT_HEIGHT;
-  goom->fps_n = DEFAULT_FPS_N;  /* desired frame rate */
-  goom->fps_d = DEFAULT_FPS_D;  /* desired frame rate */
   goom->channels = 0;
-  goom->rate = 0;
-  goom->duration = 0;
 
   goom_init (&(goom->goomdata), goom->width, goom->height);
 }
@@ -158,6 +154,7 @@ gst_goom_render (GstAudioVisualizer * base, GstBuffer * audio,
 {
   GstGoom *goom = GST_GOOM (base);
   GstMapInfo amap;
+  gint16 datain[2][GOOM_SAMPLES];
   gint16 *adata;
   gint i;
 
@@ -167,17 +164,17 @@ gst_goom_render (GstAudioVisualizer * base, GstBuffer * audio,
 
   if (goom->channels == 2) {
     for (i = 0; i < GOOM_SAMPLES; i++) {
-      goom->datain[0][i] = *adata++;
-      goom->datain[1][i] = *adata++;
+      datain[0][i] = *adata++;
+      datain[1][i] = *adata++;
     }
   } else {
     for (i = 0; i < GOOM_SAMPLES; i++) {
-      goom->datain[0][i] = *adata;
-      goom->datain[1][i] = *adata++;
+      datain[0][i] = *adata;
+      datain[1][i] = *adata++;
     }
   }
 
-  video->data[0] = goom_update (&(goom->goomdata), goom->datain);
+  video->data[0] = goom_update (&(goom->goomdata), datain);
   gst_buffer_unmap (audio, &amap);
 
   return TRUE;
index 92210b8..7047517 100644 (file)
@@ -43,29 +43,14 @@ struct _GstGoom
   GstAudioVisualizer parent;
 
   /* input tracking */
-  gint rate;
   gint channels;
-  guint bps;
 
   /* video state */
-  gint fps_n;
-  gint fps_d;
   gint width;
   gint height;
-  GstClockTime duration;
-  guint outsize;
-  GstBufferPool *pool;
-
-  guint dropped;        /* frames dropped / not dropped */
-  guint processed;
 
   /* goom stuff */
-  gint16 datain[2][GOOM_SAMPLES];
   GoomData goomdata;
-
-  /* QoS stuff *//* with LOCK */
-  gdouble proportion;
-  GstClockTime earliest_time;
 };
 
 struct _GstGoomClass