diff options
author | wm4 <wm4@nowhere> | 2015-01-13 20:16:02 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-01-13 20:16:59 +0100 |
commit | 1fde40732eb7b5c79c2e10e41f72692d986781bb (patch) | |
tree | fca37ef956497b013f2537816b85e23c6323fa11 /audio/filter/af_dummy.c | |
parent | 772c42a95cff07c39282f2d84b7827272a3c0d6d (diff) | |
download | mpv-1fde40732eb7b5c79c2e10e41f72692d986781bb.tar.bz2 mpv-1fde40732eb7b5c79c2e10e41f72692d986781bb.tar.xz |
audio/filters: use refcounted frames for some simple filters
These are read-only, and very trivial to convert.
Diffstat (limited to 'audio/filter/af_dummy.c')
-rw-r--r-- | audio/filter/af_dummy.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/audio/filter/af_dummy.c b/audio/filter/af_dummy.c index 61f2207d84..3d3ec27654 100644 --- a/audio/filter/af_dummy.c +++ b/audio/filter/af_dummy.c @@ -41,15 +41,16 @@ static int control(struct af_instance* af, int cmd, void* arg) } // Filter data through filter -static int filter(struct af_instance* af, struct mp_audio* data, int flags) +static int filter(struct af_instance* af, struct mp_audio* data) { + af_add_output_frame(af, data); return 0; } // Allocate memory and set function pointers static int af_open(struct af_instance* af){ af->control=control; - af->filter=filter; + af->filter_frame=filter; return AF_OK; } |