audiofilter: Pass a const pointer to the audio format info to ::setup()

It is not meant to be changed by the subclass.
This commit is contained in:
Sebastian Dröge 2011-08-19 10:06:39 +02:00
parent ba41bb5ca7
commit 85a3e7c98c
2 changed files with 4 additions and 3 deletions

View file

@ -78,7 +78,7 @@ struct _GstAudioFilterClass {
GstBaseTransformClass basetransformclass;
/* virtual function, called whenever the format changes */
gboolean (*setup) (GstAudioFilter * filter, GstAudioInfo * info);
gboolean (*setup) (GstAudioFilter * filter, const GstAudioInfo * info);
/*< private >*/
gpointer _gst_reserved[GST_PADDING];

View file

@ -130,7 +130,8 @@ static void volume_before_transform (GstBaseTransform * base,
static GstFlowReturn volume_transform_ip (GstBaseTransform * base,
GstBuffer * outbuf);
static gboolean volume_stop (GstBaseTransform * base);
static gboolean volume_setup (GstAudioFilter * filter, GstAudioInfo * info);
static gboolean volume_setup (GstAudioFilter * filter,
const GstAudioInfo * info);
static void volume_process_double (GstVolume * self, gpointer bytes,
guint n_bytes);
@ -721,7 +722,7 @@ volume_process_controlled_int8_clamp (GstVolume * self, gpointer bytes,
/* get notified of caps and plug in the correct process function */
static gboolean
volume_setup (GstAudioFilter * filter, GstAudioInfo * info)
volume_setup (GstAudioFilter * filter, const GstAudioInfo * info)
{
gboolean res;
GstVolume *self = GST_VOLUME (filter);