summaryrefslogtreecommitdiffstats
path: root/sub
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-02-16 19:57:57 +0100
committerwm4 <wm4@nowhere>2013-02-16 19:57:57 +0100
commit57879a22004144bf9e20a97eea5ef3c1c1fbbfd9 (patch)
tree2ac31b3617dce60a1113ae107cac159e5cae9e92 /sub
parente8181ed9fb9ea49e7def7a0a806b9d516a41168a (diff)
downloadmpv-57879a22004144bf9e20a97eea5ef3c1c1fbbfd9.tar.bz2
mpv-57879a22004144bf9e20a97eea5ef3c1c1fbbfd9.tar.xz
options: change handling of "no-" options yet again
Commit 4a40eed "options: change handling of "no-" options" generally improved the handling of automatically added negation options (recognizing "--no-opt", even though only "--opt" is declared in the option list). Unfortunately, one corner case was missed, which broke the option "--input=no-default-bindings" (other suboptions, e.g. VO suboptions, were not affected, and this is the only option where this mattered). Instead of increasing the complexity further, use a completely different approach: add the "--no-" options at runtime, and make them behave like real options. This approach could be considered slightly less elegant, because the code now has to worry about some option implementation details rather than leaving it to the parser, but all in all the new code is simpler and there are less weird corner cases to worry about.
Diffstat (limited to 'sub')
0 files changed, 0 insertions, 0 deletions