summaryrefslogtreecommitdiffstats
path: root/common/codecs.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-06-26 21:07:00 +0200
committerwm4 <wm4@nowhere>2017-06-26 21:07:00 +0200
commit50008adf4af5360f87109d6264aa77ac82f2a80a (patch)
tree051b3b5fa57226e50dfb72cdce00f5d4ba643dbc /common/codecs.c
parent6f80a694d3de98ce9ddabf1c188865fc6be69710 (diff)
downloadmpv-50008adf4af5360f87109d6264aa77ac82f2a80a.tar.bz2
mpv-50008adf4af5360f87109d6264aa77ac82f2a80a.tar.xz
options: handle suffixes like -add in a more generic way
This affects options like --vf or --display-tags. These used a "*" suffix to match all options starting with a specific name, and handled the rest in the option parser. Change this to remove the "*" special case, and require every option parser to declare a list of allowed suffixes via m_option_type.actions. The new way is conceptually simpler, because we don't have to account for the "*" in a bunch of places anymore, and instead everything is centrally handled in the CLI part of the option parser, where it's actually needed. It automatically enables suffixes like -add for a bunch of other stringlist options.
Diffstat (limited to 'common/codecs.c')
0 files changed, 0 insertions, 0 deletions