summaryrefslogtreecommitdiffstats
path: root/audio/filter/af_channels.c
diff options
context:
space:
mode:
Diffstat (limited to 'audio/filter/af_channels.c')
-rw-r--r--audio/filter/af_channels.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/audio/filter/af_channels.c b/audio/filter/af_channels.c
index 3277dff7a6..8edaa4285a 100644
--- a/audio/filter/af_channels.c
+++ b/audio/filter/af_channels.c
@@ -180,7 +180,7 @@ static int control(struct af_instance* af, int cmd, void* arg)
}
// Filter data through filter
-static struct mp_audio* play(struct af_instance* af, struct mp_audio* data)
+static int filter(struct af_instance* af, struct mp_audio* data, int flags)
{
struct mp_audio* c = data; // Current working data
struct mp_audio* l = af->data; // Local data
@@ -201,13 +201,13 @@ static struct mp_audio* play(struct af_instance* af, struct mp_audio* data)
c->planes[0] = l->planes[0];
mp_audio_set_channels(c, &l->channels);
- return c;
+ return 0;
}
// Allocate memory and set function pointers
static int af_open(struct af_instance* af){
af->control=control;
- af->play=play;
+ af->filter=filter;
af_channels_t *s = af->priv;
// If router scan commandline for routing pairs