summaryrefslogtreecommitdiffstats
path: root/gst/spectrum
diff options
context:
space:
mode:
Diffstat (limited to 'gst/spectrum')
-rw-r--r--gst/spectrum/fix_fft.c5
-rw-r--r--gst/spectrum/gstspectrum.c11
2 files changed, 3 insertions, 13 deletions
diff --git a/gst/spectrum/fix_fft.c b/gst/spectrum/fix_fft.c
index ecd70303..c48fbd90 100644
--- a/gst/spectrum/fix_fft.c
+++ b/gst/spectrum/fix_fft.c
@@ -76,7 +76,7 @@ static fixed gst_spectrum_fix_mpy(fixed a, fixed b);
*/
int gst_spectrum_fix_fft(fixed fr[], fixed fi[], int m, int inverse) {
int mr, nn, i, j, l, k, istep, n, scale, shift;
- fixed qr, qi, tr, ti, wr, wi, t;
+ fixed qr, qi, tr, ti, wr, wi;
n = 1 << m;
@@ -268,10 +268,9 @@ int gst_spectrum_iscale(int value, int numer, int denom) {
fix_dot() - dot product of two fixed arrays
*/
fixed gst_spectrum_fix_dot(fixed * hpa, fixed * pb, int n) {
- fixed *pa;
+ fixed *pa = hpa; /* FIXME */
long sum;
register fixed a, b;
- unsigned int seg, off;
/* seg = FP_SEG(hpa);
off = FP_OFF(hpa);
diff --git a/gst/spectrum/gstspectrum.c b/gst/spectrum/gstspectrum.c
index f025c28a..f8461a5c 100644
--- a/gst/spectrum/gstspectrum.c
+++ b/gst/spectrum/gstspectrum.c
@@ -30,15 +30,6 @@ static GstElementDetails gst_spectrum_details = {
"(C) 1999",
};
-
-static GstTypeDefinition spectrumdefinition = {
- "spectrum_spectrum_raw",
- "spectrum/raw",
- NULL,
- NULL,
-};
-
-
/* Spectrum signals and args */
enum {
/* FILL ME */
@@ -141,7 +132,7 @@ gst_spectrum_chain (GstPad *pad, GstBuffer *buf)
gint spec_base, spec_len;
gint16 *re, *im, *loud;
gint16 *samples;
- gint samplecount,step,pos,i;
+ gint step,pos,i;
guchar *spect;
GstBuffer *newbuf;