From 84af1733800fd78af61b2ebf5be10673192b68fe Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 22 Sep 2012 08:04:08 +0200 Subject: 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. --- command.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'command.c') diff --git a/command.c b/command.c index 53c8326e39..2fcaf2a8bb 100644 --- a/command.c +++ b/command.c @@ -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, -- cgit v1.2.3