path: root/mp_osd.h
diff options
authorwm4 <wm4@nowhere>2012-09-06 07:19:41 +0200
committerwm4 <wm4@nowhere>2012-10-12 10:10:30 +0200
commite41378ea7186a4be1d5ed3f0d55a1d4cb93f2f10 (patch)
tree92b2ba7d4a0e661435591b8c33f33c7e3e6a4b92 /mp_osd.h
parent0a54f5e741e395ffb14a1305529c70e817679596 (diff)
commands: simplify legacy command-to-property bridge
There are many input commands which are redundant to properties. They were parsed like normal commands, but set_property_command() in command.c handled them automatically using the property mechanism. This still required having the command specifications around, and the code in command.c was quite messy. Replace this with a text based replacement mechanism. Some corner cases are not handled: commands of form "seek_chapter 3 1" are supposed to set the "chapter" property to 3. This use is probably rare, and doesn't show up in the default input.conf. The reason compatibility is kept is because breaking input.conf is quite annoying, so a minimal effort is made to avoid this. Currently we print an annoying warning every time a legacy command is used, though. Also add a compatibility entry for "pt_step", which was removed some time ago. Variations in whitespace are not handled, but it's good enough to deal with old input.conf entries.
Diffstat (limited to 'mp_osd.h')
0 files changed, 0 insertions, 0 deletions