summaryrefslogtreecommitdiffstats
path: root/input
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2009-09-19 04:17:30 +0300
committerUoti Urpala <uau@glyph.nonexistent.invalid>2009-09-19 05:30:20 +0300
commit606d6fa65be92a1a4207f9e8e985848159ee8ea8 (patch)
treef323ba8f4a90201fcad697f67441efbf565f7771 /input
parent3f215c9f8e4d5d95ac9b45376460391669906236 (diff)
downloadmpv-606d6fa65be92a1a4207f9e8e985848159ee8ea8.tar.bz2
mpv-606d6fa65be92a1a4207f9e8e985848159ee8ea8.tar.xz
command.c: Split property OSD display from property commands
The function set_property_command() handles commands that require only changing a property and then possibly displaying the new value on the OSD somehow. Split it into two parts: one that executes commands by doing property manipulation according to a table, and one that displays the value of a given property on the OSD in a manner listed for that property in another table. The goal is to allow using the OSD-display code and information in generic commands that take the property name as an argument. Splitting the table in two was not strictly necessary - I could have kept it as a single table with possibly dummy field values for entries that only make sense for one part of the split function or the other. However I think splitting it is cleaner and more readable.
Diffstat (limited to 'input')
0 files changed, 0 insertions, 0 deletions