diff options
author | wm4 <wm4@nowhere> | 2020-01-12 01:04:33 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2020-01-12 01:04:33 +0100 |
commit | 4b168bcda3a403fdaeb3696d822f180dd339b929 (patch) | |
tree | 3184aa8a84e4b1d32c023d74f8dadbc9e1ef4e66 /audio/out/ao_audiotrack.c | |
parent | b947bfcf1f17f42745168863d5ade3acc1b02f9c (diff) | |
download | mpv-4b168bcda3a403fdaeb3696d822f180dd339b929.tar.bz2 mpv-4b168bcda3a403fdaeb3696d822f180dd339b929.tar.xz |
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.
Diffstat (limited to 'audio/out/ao_audiotrack.c')
0 files changed, 0 insertions, 0 deletions