[prev in list] [next in list] [prev in thread] [next in thread]
List: gstreamer-cvs
Subject: gst-plugins-base: channelmix: fix up API a little
From: wtay () kemper ! freedesktop ! org (Wim Taymans)
Date: 2015-10-30 16:52:24
Message-ID: 20151030165224.1B701760B5 () kemper ! freedesktop ! org
[Download RAW message or body]
Module: gst-plugins-base
Branch: master
Commit: e1569ce76a87909ae437b217f6e2120033b5c32c
URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=e1569ce76a87909ae437b217f6e2120033b5c32c
Author: Wim Taymans <wtaymans@redhat.com>
Date: Fri Oct 30 17:33:32 2015 +0100
channelmix: fix up API a little
don't use gpointer * for something that should be gpointer.
---
gst/audioconvert/gstchannelmix.c | 12 ++++++------
gst/audioconvert/gstchannelmix.h | 4 ++--
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/gst/audioconvert/gstchannelmix.c b/gst/audioconvert/gstchannelmix.c
index 4051aaa..34304df 100644
--- a/gst/audioconvert/gstchannelmix.c
+++ b/gst/audioconvert/gstchannelmix.c
@@ -739,7 +739,7 @@ gst_channel_mix_is_passthrough (GstChannelMix * mix)
* you might need later on! */
static void
gst_channel_mix_mix_int (GstChannelMix * mix,
- gint32 * in_data, gint32 * out_data, gint samples)
+ const gint32 * in_data, gint32 * out_data, gint samples)
{
gint in, out, n;
gint64 res;
@@ -780,7 +780,7 @@ gst_channel_mix_mix_int (GstChannelMix * mix,
static void
gst_channel_mix_mix_double (GstChannelMix * mix,
- gdouble * in_data, gdouble * out_data, gint samples)
+ const gdouble * in_data, gdouble * out_data, gint samples)
{
gint in, out, n;
gdouble res;
@@ -829,7 +829,7 @@ gst_channel_mix_mix_double (GstChannelMix * mix,
*/
void
gst_channel_mix_mix (GstChannelMix * mix, GstAudioFormat format,
- GstAudioLayout layout, gpointer * in_data, gpointer * out_data,
+ GstAudioLayout layout, const gpointer in_data, gpointer out_data,
gint samples)
{
g_return_if_fail (mix != NULL);
@@ -838,11 +838,11 @@ gst_channel_mix_mix (GstChannelMix * mix, GstAudioFormat \
format,
switch (format) {
case GST_AUDIO_FORMAT_S32:
- gst_channel_mix_mix_int (mix, (gint32 *) in_data, (gint32 *) out_data,
- samples);
+ gst_channel_mix_mix_int (mix, (const gint32 *) in_data,
+ (gint32 *) out_data, samples);
break;
case GST_AUDIO_FORMAT_F64:
- gst_channel_mix_mix_double (mix, (gdouble *) in_data,
+ gst_channel_mix_mix_double (mix, (const gdouble *) in_data,
(gdouble *) out_data, samples);
break;
default:
diff --git a/gst/audioconvert/gstchannelmix.h b/gst/audioconvert/gstchannelmix.h
index 6db4f2e..97dd0de 100644
--- a/gst/audioconvert/gstchannelmix.h
+++ b/gst/audioconvert/gstchannelmix.h
@@ -59,8 +59,8 @@ gboolean gst_channel_mix_is_passthrough (GstChannelMix \
*mix); void gst_channel_mix_mix (GstChannelMix * mix,
GstAudioFormat format,
GstAudioLayout layout,
- gpointer * in_data,
- gpointer * out_data,
+ const gpointer in_data,
+ gpointer out_data,
gint samples);
#endif /* __GST_CHANNEL_MIX_H__ */
_______________________________________________
gstreamer-commits mailing list
gstreamer-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/gstreamer-commits
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic