diff options
author | wm4 <wm4@nowhere> | 2012-09-22 08:04:08 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-10-12 10:10:32 +0200 |
commit | 84af1733800fd78af61b2ebf5be10673192b68fe (patch) | |
tree | 8d1efba46dfb2af05e594360c90c2b2d63c670e3 /command.c | |
parent | b591688a2774f1142a56e9c2034ecd3002fdb8d8 (diff) | |
download | mpv-84af1733800fd78af61b2ebf5be10673192b68fe.tar.bz2 mpv-84af1733800fd78af61b2ebf5be10673192b68fe.tar.xz |
commands: cosmetics: rename things
This is Better (tm).
The only actual change is that with M_PROPERTY_SET_STRING, the option
parser will use the property name, instead whatever was set in the
name field of the option returned by M_PROPERTY_GET_TYPE. In most cases,
these should be the same, though.
Diffstat (limited to 'command.c')
-rw-r--r-- | command.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1777,7 +1777,7 @@ void run_command(MPContext *mpctx, mp_cmd_t *cmd) case MP_CMD_SET: { cmd->args[0].v.s = translate_legacy_property(cmd, cmd->args[0].v.s); - int r = mp_property_do(cmd->args[0].v.s, M_PROPERTY_PARSE, + int r = mp_property_do(cmd->args[0].v.s, M_PROPERTY_SET_STRING, cmd->args[1].v.s, mpctx); if (r == M_PROPERTY_UNKNOWN) mp_msg(MSGT_CPLAYER, MSGL_WARN, @@ -1817,7 +1817,7 @@ void run_command(MPContext *mpctx, mp_cmd_t *cmd) case MP_CMD_GET_PROPERTY: { cmd->args[0].v.s = translate_legacy_property(cmd, cmd->args[0].v.s); char *tmp; - int r = mp_property_do(cmd->args[0].v.s, M_PROPERTY_TO_STRING, + int r = mp_property_do(cmd->args[0].v.s, M_PROPERTY_GET_STRING, &tmp, mpctx); if (r <= 0) { mp_msg(MSGT_CPLAYER, MSGL_WARN, |