diff options
author | wm4 <wm4@nowhere> | 2012-09-18 17:13:05 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-10-12 10:10:31 +0200 |
commit | 28f43ce9a9d543fccb10aaf574282c349408946f (patch) | |
tree | 6decc57b7c054071a3d8594d1abaf77265687f15 /command.c | |
parent | 86ed6efd8acbf86c7f85d69e51c40d08f421a1ca (diff) | |
download | mpv-28f43ce9a9d543fccb10aaf574282c349408946f.tar.bz2 mpv-28f43ce9a9d543fccb10aaf574282c349408946f.tar.xz |
commands: minor improvement to error message
Also remove two slave mode messages.
Diffstat (limited to 'command.c')
-rw-r--r-- | command.c | 10 |
1 files changed, 2 insertions, 8 deletions
@@ -1827,9 +1827,6 @@ void run_command(MPContext *mpctx, mp_cmd_t *cmd) cmd->args[0].v.s, cmd->args[1].v.s); else if (cmd->on_osd) show_property_osd(mpctx, cmd->args[0].v.s); - if (r <= 0) - mp_msg(MSGT_GLOBAL, MSGL_INFO, - "ANS_ERROR=%s\n", property_error_string(r)); break; } @@ -1844,13 +1841,10 @@ void run_command(MPContext *mpctx, mp_cmd_t *cmd) "Unknown property: '%s'\n", cmd->args[0].v.s); else if (r <= 0) mp_msg(MSGT_CPLAYER, MSGL_WARN, - "Failed to increment property '%s' by %f.\n", - cmd->args[0].v.s, cmd->args[1].v.f); + "Failed to increment property '%s' by %g.\n", + cmd->args[0].v.s, s); else if (cmd->on_osd) show_property_osd(mpctx, cmd->args[0].v.s); - if (r <= 0) - mp_msg(MSGT_GLOBAL, MSGL_INFO, "ANS_ERROR=%s\n", - property_error_string(r)); break; } |