mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 07:16:55 +00:00
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:
parent
ba41bb5ca7
commit
85a3e7c98c
2 changed files with 4 additions and 3 deletions
|
@ -78,7 +78,7 @@ struct _GstAudioFilterClass {
|
||||||
GstBaseTransformClass basetransformclass;
|
GstBaseTransformClass basetransformclass;
|
||||||
|
|
||||||
/* virtual function, called whenever the format changes */
|
/* virtual function, called whenever the format changes */
|
||||||
gboolean (*setup) (GstAudioFilter * filter, GstAudioInfo * info);
|
gboolean (*setup) (GstAudioFilter * filter, const GstAudioInfo * info);
|
||||||
|
|
||||||
/*< private >*/
|
/*< private >*/
|
||||||
gpointer _gst_reserved[GST_PADDING];
|
gpointer _gst_reserved[GST_PADDING];
|
||||||
|
|
|
@ -130,7 +130,8 @@ static void volume_before_transform (GstBaseTransform * base,
|
||||||
static GstFlowReturn volume_transform_ip (GstBaseTransform * base,
|
static GstFlowReturn volume_transform_ip (GstBaseTransform * base,
|
||||||
GstBuffer * outbuf);
|
GstBuffer * outbuf);
|
||||||
static gboolean volume_stop (GstBaseTransform * base);
|
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,
|
static void volume_process_double (GstVolume * self, gpointer bytes,
|
||||||
guint n_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 */
|
/* get notified of caps and plug in the correct process function */
|
||||||
static gboolean
|
static gboolean
|
||||||
volume_setup (GstAudioFilter * filter, GstAudioInfo * info)
|
volume_setup (GstAudioFilter * filter, const GstAudioInfo * info)
|
||||||
{
|
{
|
||||||
gboolean res;
|
gboolean res;
|
||||||
GstVolume *self = GST_VOLUME (filter);
|
GstVolume *self = GST_VOLUME (filter);
|
||||||
|
|
Loading…
Reference in a new issue