fixed rest of warning for gcc 3 in /gst.
Original commit message from CVS: fixed rest of warning for gcc 3 in /gst. fixed some Makefiles: s/-m486/-mcpu=i486/ disabled mpegaudioparse plugin. What good is this rotten code for anyway?
This commit is contained in:
parent
b73bb27c60
commit
2cb859e0c9
@ -5,7 +5,7 @@ plugin_LTLIBRARIES = libgstmpeg2subt.la
|
|||||||
libgstmpeg2subt_la_SOURCES = gstmpeg2subt.c
|
libgstmpeg2subt_la_SOURCES = gstmpeg2subt.c
|
||||||
|
|
||||||
if HAVE_CPU_I386
|
if HAVE_CPU_I386
|
||||||
ARCHCFLAGS = -mcpu=486
|
ARCHCFLAGS = -mcpu=i486
|
||||||
else
|
else
|
||||||
ARCHCFLAGS =
|
ARCHCFLAGS =
|
||||||
endif
|
endif
|
||||||
|
@ -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 gst_spectrum_fix_fft(fixed fr[], fixed fi[], int m, int inverse) {
|
||||||
int mr, nn, i, j, l, k, istep, n, scale, shift;
|
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;
|
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
|
fix_dot() - dot product of two fixed arrays
|
||||||
*/
|
*/
|
||||||
fixed gst_spectrum_fix_dot(fixed * hpa, fixed * pb, int n) {
|
fixed gst_spectrum_fix_dot(fixed * hpa, fixed * pb, int n) {
|
||||||
fixed *pa;
|
fixed *pa = hpa; /* FIXME */
|
||||||
long sum;
|
long sum;
|
||||||
register fixed a, b;
|
register fixed a, b;
|
||||||
unsigned int seg, off;
|
|
||||||
|
|
||||||
/* seg = FP_SEG(hpa);
|
/* seg = FP_SEG(hpa);
|
||||||
off = FP_OFF(hpa);
|
off = FP_OFF(hpa);
|
||||||
|
@ -30,15 +30,6 @@ static GstElementDetails gst_spectrum_details = {
|
|||||||
"(C) 1999",
|
"(C) 1999",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
static GstTypeDefinition spectrumdefinition = {
|
|
||||||
"spectrum_spectrum_raw",
|
|
||||||
"spectrum/raw",
|
|
||||||
NULL,
|
|
||||||
NULL,
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/* Spectrum signals and args */
|
/* Spectrum signals and args */
|
||||||
enum {
|
enum {
|
||||||
/* FILL ME */
|
/* FILL ME */
|
||||||
@ -141,7 +132,7 @@ gst_spectrum_chain (GstPad *pad, GstBuffer *buf)
|
|||||||
gint spec_base, spec_len;
|
gint spec_base, spec_len;
|
||||||
gint16 *re, *im, *loud;
|
gint16 *re, *im, *loud;
|
||||||
gint16 *samples;
|
gint16 *samples;
|
||||||
gint samplecount,step,pos,i;
|
gint step,pos,i;
|
||||||
guchar *spect;
|
guchar *spect;
|
||||||
GstBuffer *newbuf;
|
GstBuffer *newbuf;
|
||||||
|
|
||||||
|
@ -44,7 +44,7 @@ int main(int argc, char **argv)
|
|||||||
gtk_object_set(GTK_OBJECT(osssink), "fragment", 0x00180008, NULL);
|
gtk_object_set(GTK_OBJECT(osssink), "fragment", 0x00180008, NULL);
|
||||||
|
|
||||||
gtk_signal_connect(GTK_OBJECT(gtk_range_get_adjustment(GTK_RANGE(hscale))),
|
gtk_signal_connect(GTK_OBJECT(gtk_range_get_adjustment(GTK_RANGE(hscale))),
|
||||||
"value_changed", set_speed, speed);
|
"value_changed", G_CALLBACK (set_speed), speed);
|
||||||
|
|
||||||
pipeline = gst_pipeline_new("app");
|
pipeline = gst_pipeline_new("app");
|
||||||
gst_bin_add(GST_BIN(pipeline), filesrc);
|
gst_bin_add(GST_BIN(pipeline), filesrc);
|
||||||
@ -64,4 +64,6 @@ int main(int argc, char **argv)
|
|||||||
gtk_idle_add((GtkFunction)gst_bin_iterate, pipeline);
|
gtk_idle_add((GtkFunction)gst_bin_iterate, pipeline);
|
||||||
|
|
||||||
gtk_main();
|
gtk_main();
|
||||||
|
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user