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/chart/Makefile.am | 2 +- gst/chart/gstchart.c | 34 +++++++++++++++++----------------- 2 files changed, 18 insertions(+), 18 deletions(-) (limited to 'gst/chart') diff --git a/gst/chart/Makefile.am b/gst/chart/Makefile.am index 4b767535..40adc263 100644 --- a/gst/chart/Makefile.am +++ b/gst/chart/Makefile.am @@ -2,5 +2,5 @@ plugindir = $(libdir)/gst plugin_LTLIBRARIES = libchart.la libchart_la_SOURCES = gstchart.c libchart_la_CFLAGS = $(GST_CFLAGS) -libchart_la_LIBADD = $(GST_LIBS) +libchart_la_LIBADD = libchart_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) diff --git a/gst/chart/gstchart.c b/gst/chart/gstchart.c index a08c475d..331652e9 100644 --- a/gst/chart/gstchart.c +++ b/gst/chart/gstchart.c @@ -36,10 +36,10 @@ struct _GstChart { GstPad *sinkpad,*srcpad; GstBufferPool *peerpool; - // the timestamp of the next frame + /* the timestamp of the next frame */ guint64 next_time; - // video state + /* video state */ gint bpp; gint depth; gint width; @@ -47,9 +47,9 @@ struct _GstChart { gboolean first_buffer; gint samplerate; - gint framerate; // desired frame rate - gint samples_between_frames; // number of samples between start of successive frames - gint samples_since_last_frame; // number of samples between start of successive frames + gint framerate; /* desired frame rate */ + gint samples_between_frames; /* number of samples between start of successive frames */ + gint samples_since_last_frame; /* number of samples between start of successive frames */ }; struct _GstChartClass { @@ -217,7 +217,7 @@ gst_chart_init (GstChart *chart) chart->next_time = 0; chart->peerpool = NULL; - // reset the initial video state + /* reset the initial video state */ chart->bpp = 16; chart->depth = 16; chart->first_buffer = TRUE; @@ -225,8 +225,8 @@ gst_chart_init (GstChart *chart) chart->height = 128; chart->samplerate = -1; - chart->framerate = 25; // desired frame rate - chart->samples_between_frames = 0; // number of samples between start of successive frames + chart->framerate = 25; /* desired frame rate */ + chart->samples_between_frames = 0; /* number of samples between start of successive frames */ chart->samples_since_last_frame = 0; } @@ -241,8 +241,8 @@ gst_chart_sinkconnect (GstPad *pad, GstCaps *caps) GST_DEBUG (0, "CHART: new sink caps: rate %d\n", chart->samplerate); - //gst_chart_sync_parms (chart); - // + /*gst_chart_sync_parms (chart); */ + /* */ return GST_PAD_CONNECT_OK; } @@ -333,9 +333,9 @@ gst_chart_chain (GstPad *pad, GstBuffer *bufin) if (chart->samples_between_frames <= chart->samples_since_last_frame) { chart->samples_since_last_frame = 0; - // get data to draw into buffer + /* get data to draw into buffer */ if (samples_in >= chart->width) { - // make a new buffer for the output + /* make a new buffer for the output */ bufout = gst_buffer_new (); sizeout = chart->bpp / 8 * chart->width * chart->height; dataout = g_malloc (sizeout); @@ -344,16 +344,16 @@ gst_chart_chain (GstPad *pad, GstBuffer *bufin) GST_DEBUG (0, "CHART: made new buffer: size %d, width %d, height %d\n", sizeout, chart->width, chart->height); - // take data and draw to new buffer - // FIXME: call different routines for different properties + /* take data and draw to new buffer */ + /* FIXME: call different routines for different properties */ draw_chart_16bpp(dataout, chart->width, chart->height, (gint16 *)datain, samples_in); gst_buffer_unref(bufin); - // set timestamp + /* set timestamp */ GST_BUFFER_TIMESTAMP (bufout) = chart->next_time; - // Check if we need to renegotiate size. + /* Check if we need to renegotiate size. */ if (chart->first_buffer) { GST_DEBUG (0, "making new pad\n"); if (!gst_pad_try_set_caps (chart->srcpad, @@ -378,7 +378,7 @@ gst_chart_chain (GstPad *pad, GstBuffer *bufin) } GST_DEBUG (0, "CHART: outputting buffer\n"); - // output buffer + /* output buffer */ GST_BUFFER_FLAG_SET (bufout, GST_BUFFER_READONLY); gst_pad_push (chart->srcpad, bufout); } -- cgit v1.2.1