goom2k1: remove variables not needed anymore

https://bugzilla.gnome.org/show_bug.cgi?id=742875
This commit is contained in:
Luis de Bethencourt 2015-06-02 18:09:48 +01:00
parent 8756b6a9d4
commit ffe7507512
2 changed files with 6 additions and 24 deletions

View 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;

View 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