summaryrefslogtreecommitdiffstats
path: root/player/command.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-11-22 18:21:33 +0100
committerwm4 <wm4@nowhere>2019-11-23 01:18:49 +0100
commit6e0e39b79f1a024fb8dd98101c5fc63a8ec0d8ed (patch)
treea3debde472a6c400ae1bec940e2a8dee8753323f /player/command.c
parentdbb5dd7c33e8520ddec5eafc1118f66f854114af (diff)
downloadmpv-6e0e39b79f1a024fb8dd98101c5fc63a8ec0d8ed.tar.bz2
mpv-6e0e39b79f1a024fb8dd98101c5fc63a8ec0d8ed.tar.xz
input: change mp_cmd.original from bstr to cstr
No reason to have this as bstr, just makes everything more complex. Also clear mp_cmd.sender when it's copied. Otherwise it would be a dangling pointer. Apparently it's never set to non-NULL in this situation, but this is cleaner anyway.
Diffstat (limited to 'player/command.c')
-rw-r--r--player/command.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/player/command.c b/player/command.c
index 00ebddf343..85a44e3603 100644
--- a/player/command.c
+++ b/player/command.c
@@ -4819,8 +4819,8 @@ static void cmd_add_cycle(void *p)
char *property = cmd->args[0].v.s;
if (cmd->cmd->repeated && !check_property_autorepeat(property, mpctx)) {
- MP_VERBOSE(mpctx, "Dropping command '%.*s' from auto-repeated key.\n",
- BSTR_P(cmd->cmd->original));
+ MP_VERBOSE(mpctx, "Dropping command '%s' from auto-repeated key.\n",
+ cmd->cmd->original);
return;
}