diff options
author | wm4 <wm4@nowhere> | 2013-09-27 15:30:59 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-09-27 15:30:59 +0200 |
commit | 0d90dd07ff5269bf3492004d31ec0f4bd0b6d113 (patch) | |
tree | 595186d936f47e391f50ae8b0ab8e03a483a277e /mpvcore/input/input.h | |
parent | 9f149717a625d03033380fd5f6904b328ea51f5b (diff) | |
download | mpv-0d90dd07ff5269bf3492004d31ec0f4bd0b6d113.tar.bz2 mpv-0d90dd07ff5269bf3492004d31ec0f4bd0b6d113.tar.xz |
input: more mp_msg conversion
It appears the last run missed all mp_tmsg().
Since the command parser also prints messages, it needs a new parameter
to pass a log context. We go the easy way and just require the input_ctx
to be passed, and use its mp_log.
Diffstat (limited to 'mpvcore/input/input.h')
-rw-r--r-- | mpvcore/input/input.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mpvcore/input/input.h b/mpvcore/input/input.h index 639f069a9c..207734cc83 100644 --- a/mpvcore/input/input.h +++ b/mpvcore/input/input.h @@ -216,7 +216,8 @@ struct mp_cmd *mp_input_get_cmd(struct input_ctx *ictx, int time, // Parse text and return corresponding struct mp_cmd. // The location parameter is for error messages. -struct mp_cmd *mp_input_parse_cmd(bstr str, const char *location); +struct mp_cmd *mp_input_parse_cmd(struct input_ctx *ictx, bstr str, + const char *location); // After getting a command from mp_input_get_cmd you need to free it using this // function |