mpv/input
wm4 4b168bcda3 input: escape command parameters when logging
Some complex commands (like commands generated by scripts to define key
bindings or the OSD overlay command) contain new lines, which "corrupts"
logging.

Fix this by escaping the parameters C-style. Abuse the JSON writer for
this, which already has code to vaguely produce C-style escapes.

At first I considered stripping the quotes, but then I thought it's
actually a good idea to leave them in, as it makes things clearer.

Follows an idea by avih.
2020-01-12 01:04:33 +01:00
..
cmd.c input: escape command parameters when logging 2020-01-12 01:04:33 +01:00
cmd.h command: reduce OSC/stats log spam 2019-12-19 12:52:13 +01:00
event.c input: ignore empty lines on drag-drop mime data 2019-09-21 15:39:47 +02:00
event.h
input.c stream, demux: redo origin policy thing 2019-12-20 13:00:39 +01:00
input.h command, input: add input-bindings property 2019-11-23 01:18:49 +01:00
ipc-dummy.c build: change how some OS specific source files are selected 2017-06-29 10:30:16 +02:00
ipc-unix.c options: get rid of GLOBAL_CONFIG hack 2019-11-29 12:14:43 +01:00
ipc-win.c options: get rid of GLOBAL_CONFIG hack 2019-11-29 12:14:43 +01:00
ipc.c ipc: cosmetic: switch a negated if/else 2018-05-25 10:46:18 +02:00
keycodes.c mac: remove Apple Remote support 2019-12-15 20:07:31 +01:00
keycodes.h mac: remove Apple Remote support 2019-12-15 20:07:31 +01:00
pipe-win32.c osdep: rename atomics.h to atomic.h 2016-09-07 11:26:25 +02:00
sdl_gamepad.c sdl: prevent concurrent use of SDL in different threads 2019-10-25 22:17:54 +02:00