summaryrefslogtreecommitdiffstats
path: root/filters/f_autoconvert.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2020-01-12 01:04:33 +0100
committerwm4 <wm4@nowhere>2020-01-12 01:04:33 +0100
commit4b168bcda3a403fdaeb3696d822f180dd339b929 (patch)
tree3184aa8a84e4b1d32c023d74f8dadbc9e1ef4e66 /filters/f_autoconvert.c
parentb947bfcf1f17f42745168863d5ade3acc1b02f9c (diff)
downloadmpv-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 'filters/f_autoconvert.c')
0 files changed, 0 insertions, 0 deletions