diff options
author | wm4 <wm4@nowhere> | 2013-07-22 14:43:58 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-07-22 15:11:03 +0200 |
commit | 3b8dfddb4cb6e9431da659b10c5b31a9f17c81b5 (patch) | |
tree | b087f6551fa96a6fbe0f1f2b7f0f951f331eb552 /core/input | |
parent | 221ef23d0d4454af974b08e68fad6b898d1d8e12 (diff) | |
download | mpv-3b8dfddb4cb6e9431da659b10c5b31a9f17c81b5.tar.bz2 mpv-3b8dfddb4cb6e9431da659b10c5b31a9f17c81b5.tar.xz |
audio/filter: use new option API
Make the VF/VO/AO option parser available to audio filters. No audio
filter uses this yet, but it's still a quite intrusive change.
In particular, the commands for manipulating filters at runtime
completely change. We delete the old code, and use the same
infrastructure as for video filters. (This forces complete
reinitialization of the filter chain, which hopefully isn't a problem
for any use cases. The old code forced reinitialization too, but it
could potentially allow a filter to cache things; e.g. consider loaded
ladspa plugins and such.)
Diffstat (limited to 'core/input')
-rw-r--r-- | core/input/input.c | 6 | ||||
-rw-r--r-- | core/input/input.h | 6 |
2 files changed, 2 insertions, 10 deletions
diff --git a/core/input/input.c b/core/input/input.c index 66d78b48c6..467f6d6299 100644 --- a/core/input/input.c +++ b/core/input/input.c @@ -210,11 +210,7 @@ static const mp_cmd_t mp_cmds[] = { }}, { MP_CMD_DISABLE_INPUT_SECTION, "disable_section", { ARG_STRING } }, - { MP_CMD_AF_SWITCH, "af_switch", { ARG_STRING } }, - { MP_CMD_AF_ADD, "af_add", { ARG_STRING } }, - { MP_CMD_AF_DEL, "af_del", { ARG_STRING } }, - { MP_CMD_AF_CLR, "af_clr", }, - { MP_CMD_AF_CMDLINE, "af_cmdline", { ARG_STRING, ARG_STRING } }, + { MP_CMD_AF, "af", { ARG_STRING, ARG_STRING } }, { MP_CMD_VF, "vf", { ARG_STRING, ARG_STRING } }, diff --git a/core/input/input.h b/core/input/input.h index 1a0f2529ce..f4f5621e9f 100644 --- a/core/input/input.h +++ b/core/input/input.h @@ -77,11 +77,7 @@ enum mp_command_type { MP_CMD_DVB_SET_CHANNEL = 5101, /// Audio Filter commands - MP_CMD_AF_SWITCH, - MP_CMD_AF_ADD, - MP_CMD_AF_DEL, - MP_CMD_AF_CLR, - MP_CMD_AF_CMDLINE, + MP_CMD_AF, /// Video filter commands MP_CMD_VF, |