mpv/player
Guido Cella c84bb1ce67 osc.lua: escape text
Escape all messages in osc.lua, because other than the title they
weren't being escaped at all. If for example you did mpv foo.mp4
'{\fs50}bar.mp4' and script-message osc-playlist, it would just render
the second entry as bar.mp4 in big text.

The title was escaped partially, now the escaping is complete because:

- It escapes \. Backslashes at the end of the title are escaped instead
  of being stripped, and \n, \N and \h are now printed verbatim. In
  particular, "\\n" is no longer converted to space and is printed
  verbatim instead which is more correct.
- Newlines ("\n", not the "\\n" escape sequence) are converted to spaces
  instead of rendering them and messing up the text positioning within
  the OSC.
- Spaces at the start are preserved.

Fixes #11209, fixes #11275.
2024-03-21 03:20:14 +01:00
..
javascript js: complex key-binding: send also key_text 2024-02-09 16:54:57 +02:00
lua osc.lua: escape text 2024-03-21 03:20:14 +01:00
audio.c player/video: subtract frame_time from delay when ao_chain starts audio 2024-03-03 16:24:28 -06:00
client.c various: fix -Wold-style-declaration warning 2024-03-19 08:58:18 +01:00
client.h scripting: remove race condition when toggling internal scripts 2020-03-26 23:59:44 +01:00
command.c command: add escape-ass 2024-03-21 03:20:14 +01:00
command.h various: add missing include in header flles 2023-09-21 14:40:11 +00:00
configfiles.c player: fix watch later config comments when ignoring path 2024-02-24 05:26:48 +00:00
core.h Revert "player: reset av state on speed changes" 2024-03-03 16:27:59 -06:00
external_files.c command: restore lang after track reload 2024-01-20 17:26:45 +00:00
external_files.h command: restore lang after track reload 2024-01-20 17:26:45 +00:00
javascript.c scripting: rename backend names for concise naming 2023-10-27 23:18:56 +00:00
loadfile.c player/loadfile: rewrite sub autoselection logic 2024-02-24 05:26:37 +00:00
lua.c scripting: add mp.input 2024-01-13 02:53:08 +00:00
main.c player/main: move terminal_uninit to the end 2024-03-19 19:58:09 +01:00
meson.build meson: generate .com in the same place as the .exe if possible 2023-11-27 18:42:19 +00:00
misc.c player: change insert_next to insert_at 2024-02-26 02:03:21 +00:00
osd.c player: remove --term-remaining-playtime option 2024-01-20 23:24:48 +00:00
playloop.c player/sub: avoid wasteful subtitle redraws 2024-02-15 16:43:11 +00:00
screenshot.c image_writer: fix TOCTOU in screenshot filename generation 2024-03-19 19:30:27 +01:00
screenshot.h player: make screenshot each-frame mode more accurate 2020-02-07 13:32:21 +01:00
scripting.c mp_thread: prefer tracking threads with id 2023-11-05 17:36:17 +00:00
sub.c player/sub: avoid wasteful subtitle redraws 2024-02-15 16:43:11 +00:00
video.c mp_image: add mp_image_params_static_equal for finer comparision 2024-03-09 05:58:52 +00:00