summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-09-22 06:33:04 +0200
committerwm4 <wm4@nowhere>2012-10-12 10:10:32 +0200
commitb591688a2774f1142a56e9c2034ecd3002fdb8d8 (patch)
tree1fbc4e841dbbccd35d65c12c20f3900eec9a0784 /libvo
parent45b432f4c32be5cab798a0658d9461b3a40a6d94 (diff)
downloadmpv-b591688a2774f1142a56e9c2034ecd3002fdb8d8.tar.bz2
mpv-b591688a2774f1142a56e9c2034ecd3002fdb8d8.tar.xz
input: verify input.conf on loading
When input.conf is loaded, verify each command and print a warning if it's invalid or uses legacy commands. This is done for both the user's and the embedded config files. The diff is a bit noisy, because mp_input_parse_cmd() is changed to take a bstr as argument instead of a char*.
Diffstat (limited to 'libvo')
-rw-r--r--libvo/video_out.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libvo/video_out.c b/libvo/video_out.c
index 2be311f87c..37cea53a74 100644
--- a/libvo/video_out.c
+++ b/libvo/video_out.c
@@ -500,5 +500,5 @@ void vo_mouse_movement(struct vo *vo, int posx, int posy)
if (!enable_mouse_movements)
return;
snprintf(cmd_str, sizeof(cmd_str), "set_mouse_pos %i %i", posx, posy);
- mp_input_queue_cmd(vo->input_ctx, mp_input_parse_cmd(cmd_str));
+ mp_input_queue_cmd(vo->input_ctx, mp_input_parse_cmd(bstr0(cmd_str)));
}