Commit 7ab6d2b0 authored by David Schleef's avatar David Schleef
Browse files

gst/level/gstlevel.c: Revert last change.

Original commit message from CVS:
* gst/level/gstlevel.c:
Revert last change.
parent f636fb8b
2007-05-09 David Schleef <ds@schleef.org>
* gst/level/gstlevel.c:
Revert last change.
2007-05-09 Sebastien Moutte <sebastien@moutte.net>
* gst/level/gstlevel.c: (gst_level_calculate_##TYPE),
......
......@@ -313,7 +313,7 @@ gst_level_get_property (GObject * object, guint prop_id,
#define DEFINE_INT_LEVEL_CALCULATOR(TYPE, RESOLUTION) \
static void inline \
gst_level_calculate_##TYPE (guint8 *data, guint num, guint channels, \
gst_level_calculate_##TYPE (gpointer data, guint num, guint channels, \
gdouble *NCS, gdouble *NPS) \
{ \
TYPE * in = (TYPE *)data; \
......@@ -344,7 +344,7 @@ DEFINE_INT_LEVEL_CALCULATOR (gint8, 7);
#define DEFINE_FLOAT_LEVEL_CALCULATOR(TYPE) \
static void inline \
gst_level_calculate_##TYPE (guint8 *data, guint num, guint channels, \
gst_level_calculate_##TYPE (gpointer data, guint num, guint channels, \
gdouble *NCS, gdouble *NPS) \
{ \
TYPE * in = (TYPE *)data; \
......@@ -534,7 +534,7 @@ static GstFlowReturn
gst_level_transform_ip (GstBaseTransform * trans, GstBuffer * in)
{
GstLevel *filter;
guint8 *in_data;
gpointer in_data;
double CS = 0.0;
guint num_frames = 0;
guint num_int_samples = 0; /* number of interleaved samples
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment