From 4359de26166000e317604b6b20283c79dd2a0521 Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Tue, 19 Mar 2002 04:10:06 +0000 Subject: removal of //-style comments don't link plugins to core libs -- the versioning is done internally to the plugins with... Original commit message from CVS: * removal of //-style comments * don't link plugins to core libs -- the versioning is done internally to the plugins with the plugin_info struct, and symbol resolution is lazy, so we can always know if a plugin can be loaded by the plugin_info data. in theory. --- gst/spectrum/Makefile.am | 2 +- gst/spectrum/demo-osssrc.c | 2 +- gst/spectrum/gstspectrum.c | 40 ++++++++-------------------------------- 3 files changed, 10 insertions(+), 34 deletions(-) (limited to 'gst/spectrum') diff --git a/gst/spectrum/Makefile.am b/gst/spectrum/Makefile.am index b7c8397d..acc29f09 100644 --- a/gst/spectrum/Makefile.am +++ b/gst/spectrum/Makefile.am @@ -4,7 +4,7 @@ plugin_LTLIBRARIES = libgstspectrum.la libgstspectrum_la_SOURCES = gstspectrum.c fix_fft.c libgstspectrum_la_CFLAGS = $(GST_CFLAGS) -libgstspectrum_la_LIBADD = $(GST_LIBS) +libgstspectrum_la_LIBADD = libgstspectrum_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) noinst_HEADERS = gstspectrum.h diff --git a/gst/spectrum/demo-osssrc.c b/gst/spectrum/demo-osssrc.c index cd3f6ac4..e3f6552c 100644 --- a/gst/spectrum/demo-osssrc.c +++ b/gst/spectrum/demo-osssrc.c @@ -76,6 +76,6 @@ void spectrum_chain(GstPad *pad,GstBuffer *buf) { } gboolean idle_func(gpointer data) { - //gst_src_push(GST_SRC(data)); + /*gst_src_push(GST_SRC(data)); */ return TRUE; } diff --git a/gst/spectrum/gstspectrum.c b/gst/spectrum/gstspectrum.c index 0821545c..55c5b6bf 100644 --- a/gst/spectrum/gstspectrum.c +++ b/gst/spectrum/gstspectrum.c @@ -65,7 +65,7 @@ void gst_spectrum_window(fixed fr[], int n); static GstElementClass *parent_class = NULL; -//static guint gst_spectrum_signals[LAST_SIGNAL] = { 0 }; +/*static guint gst_spectrum_signals[LAST_SIGNAL] = { 0 }; */ GType gst_spectrum_get_type (void) @@ -99,7 +99,7 @@ gst_spectrum_class_init (GstSpectrumClass *klass) g_object_class_install_property(G_OBJECT_CLASS(klass), ARG_WIDTH, g_param_spec_int("width","width","width", - G_MININT,G_MAXINT,0,G_PARAM_WRITABLE)); // CHECKME + G_MININT,G_MAXINT,0,G_PARAM_WRITABLE)); /* CHECKME */ gobject_class->set_property = gst_spectrum_set_property; } @@ -151,32 +151,8 @@ gst_spectrum_chain (GstPad *pad, GstBuffer *buf) spectrum = GST_SPECTRUM (GST_OBJECT_PARENT (pad)); - /* first deal with audio metadata */ -// FIXME -// if (buf->meta) { -// if (spectrum->meta != NULL) { -// /* FIXME: need to unref the old metadata so it goes away */ -// } -// /* we just make a copy of the pointer */ -// spectrum->meta = (MetaAudioRaw *)(buf->data); -// /* FIXME: now we have to ref the metadata so it does go away */ -// } - - //g_return_if_fail(spectrum->meta != NULL); - - //samplecount = GST_BUFFER_SIZE(buf) / - // (spectrum->meta->channels * sizeof(gint16)); -// samples = (gint16 *)g_malloc(buf->datasize); -// g_return_if_fail(samples != NULL); -// memcpy(samples,(gint16 -//*)GST_BUFFER_DATA(buf),GST_BUFFER_DATASIZE(buf)); -// gst_buffer_unref(buf); samples = (gint16 *)GST_BUFFER_DATA(buf); -// return; -// spec_base = (gint) (log(samplecount) / log(2)); -// if (spec_base > 10) spec_base = 10; -// spec_len = (gint) pow(2, spec_base); spec_base = 8; spec_len = 1024; @@ -186,12 +162,12 @@ gst_spectrum_chain (GstPad *pad, GstBuffer *buf) g_return_if_fail(loud != NULL); memset(im,0,spec_len * sizeof(gint16)); - //if (spectrum->meta->channels == 2) { + /*if (spectrum->meta->channels == 2) { */ re = g_malloc(spec_len * sizeof(gint16)); for (i=0;i> 1; - //} else - // re = samples; + /*} else */ + /* re = samples; */ gst_spectrum_window(re,spec_len); gst_spectrum_fix_fft(re,im,spec_base,FALSE); gst_spectrum_fix_loud(loud,re,im,spec_len,0); @@ -204,12 +180,12 @@ gst_spectrum_chain (GstPad *pad, GstBuffer *buf) spect[i] = (loud[pos] + 60) / 2; else spect[i] = 0; -// if (spect[i] > 15); -// spect[i] = 15; +/* if (spect[i] > 15); */ +/* spect[i] = 15; */ } g_free(loud); gst_buffer_unref(buf); -// g_free(samples); +/* g_free(samples); */ newbuf = gst_buffer_new(); g_return_if_fail(newbuf != NULL); -- cgit v1.2.1