summaryrefslogtreecommitdiff
path: root/gst/audioconvert
diff options
context:
space:
mode:
authorWim Taymans <wtaymans@redhat.com>2015-10-30 17:33:32 +0100
committerWim Taymans <wtaymans@redhat.com>2015-10-30 17:51:47 +0100
commite1569ce76a87909ae437b217f6e2120033b5c32c (patch)
tree2bc15aa9823eca87ee3b1f9c346525dd57e97e63 /gst/audioconvert
parent26d469a04bb15166d4d6879f3614346d4daaa0f0 (diff)
channelmix: fix up API a little
don't use gpointer * for something that should be gpointer.
Diffstat (limited to 'gst/audioconvert')
-rw-r--r--gst/audioconvert/gstchannelmix.c12
-rw-r--r--gst/audioconvert/gstchannelmix.h4
2 files changed, 8 insertions, 8 deletions
diff --git a/gst/audioconvert/gstchannelmix.c b/gst/audioconvert/gstchannelmix.c
index 4051aaa97..34304dfcc 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 6db4f2e67..97dd0dea1 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__ */