diff options
author | Sébastien Moutte <sebastien@moutte.net> | 2007-05-09 21:30:53 +0000 |
---|---|---|
committer | Sébastien Moutte <sebastien@moutte.net> | 2007-05-09 21:30:53 +0000 |
commit | f636fb8b343fb64818c4cce80f9b32a1fa90804e (patch) | |
tree | e419c9db6cd64c7ae864265b0b073fab522b02f2 /gst/level | |
parent | d29215b257667ccd56a5fa3157281cc386604921 (diff) |
gst/level/gstlevel.c: Use guint8 * instead of gpointer then vs6 know the size of data pointed when moving the pointer.
Original commit message from CVS:
* gst/level/gstlevel.c: (gst_level_calculate_##TYPE),
(gst_level_transform_ip):
Use guint8 * instead of gpointer then vs6 know the size of data
pointed when moving the pointer.
* gst/rtp/gstrtph264pay.c: (gst_rtp_h264_pay_handle_buffer):
Move instructions after variables declaration.
* win32/vs6/autogen.dsp:
* win32/vs6/libgstrtp.dsp:
* win32/vs6/libgstrtsp.dsp:
Update vs6 project files.
Diffstat (limited to 'gst/level')
-rw-r--r-- | gst/level/gstlevel.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gst/level/gstlevel.c b/gst/level/gstlevel.c index 3edef456..91d787bf 100644 --- a/gst/level/gstlevel.c +++ b/gst/level/gstlevel.c @@ -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 (gpointer data, guint num, guint channels, \ +gst_level_calculate_##TYPE (guint8 *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 (gpointer data, guint num, guint channels, \ +gst_level_calculate_##TYPE (guint8 *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; - gpointer in_data; + guint8 *in_data; double CS = 0.0; guint num_frames = 0; guint num_int_samples = 0; /* number of interleaved samples |