diff options
author | wm4 <wm4@nowhere> | 2019-11-22 18:21:33 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2019-11-23 01:18:49 +0100 |
commit | 6e0e39b79f1a024fb8dd98101c5fc63a8ec0d8ed (patch) | |
tree | a3debde472a6c400ae1bec940e2a8dee8753323f /input/cmd.h | |
parent | dbb5dd7c33e8520ddec5eafc1118f66f854114af (diff) | |
download | mpv-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 'input/cmd.h')
-rw-r--r-- | input/cmd.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/input/cmd.h b/input/cmd.h index 83791589ee..72824dffc8 100644 --- a/input/cmd.h +++ b/input/cmd.h @@ -99,7 +99,7 @@ typedef struct mp_cmd { struct mp_cmd_arg *args; int nargs; int flags; // mp_cmd_flags bitfield - bstr original; + char *original; char *input_section; bool is_up_down : 1; bool is_up : 1; |