1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-17 04:15:13 +00:00
mpv/player
wm4 5a89150a46 player: remove OSD subtitle render path
This was used with --no-sub-ass (aka --no-ass). This option (which is
not yet removed) strips all styling from the subtitles, and renders them
as plaintext only. For some reason, it originally seemed convenient to
reuse all the OSD text rendering code (osd_libass.c). While this was
indeed simple, it had a bad influence on the rest of the code. For
example, it had to decide whether to go through the OSD code path, or
the proper subtitle renderer in sd_ass.c.

Kill the OSD subtitle renderer. Reimplement --no-sub-ass and also
"secondary" subtitles in sd_ass.c. fill_plaintext() contains some rather
minor code duplication with osd_libass.c for setting up a dummy
ASS_Event and escaping the stripped text. Since sd_ass.c already has to
handle "normal" text subtitles, and has code for stripping ASS tags,
this remains all relatively simple.

Remove all the unnecessary crap from the rest of the code.
2015-11-17 01:56:23 +01:00
..
lua ytdl: disable --all-subs if "sub-lang" is in raw-options 2015-10-24 17:30:22 +02:00
audio.c player: use demuxer ts offset to simplify timeline ts handling 2015-11-16 23:17:33 +01:00
client.c client API: change error string if playback fails completely 2015-10-26 15:55:40 +01:00
client.h vo_opengl_cb: don't render OSD while VO is not created 2015-03-23 16:32:59 +01:00
command.c player: remove OSD subtitle render path 2015-11-17 01:56:23 +01:00
command.h video: always re-probe auto deint filter on filter reconfig 2015-07-21 21:54:15 +02:00
configfiles.c command: make time properties unavailable if timestamp is unknown 2015-10-16 16:16:10 +02:00
core.h player: remove OSD subtitle render path 2015-11-17 01:56:23 +01:00
external_files.c external_files: deduplicate bstr functions 2015-11-09 22:41:19 -08:00
external_files.h player: rename and move find_subfiles.c 2015-09-20 18:05:06 +02:00
loadfile.c player: use demuxer ts offset to simplify timeline ts handling 2015-11-16 23:17:33 +01:00
lua.c osd: delay libass initialization as far as possible 2015-09-07 14:26:01 +02:00
main.c options: handle terminal/logging settings eagerly 2015-11-04 21:49:54 +01:00
misc.c player: use demuxer ts offset to simplify timeline ts handling 2015-11-16 23:17:33 +01:00
osd.c player: remove OSD subtitle render path 2015-11-17 01:56:23 +01:00
playloop.c player: use demuxer ts offset to simplify timeline ts handling 2015-11-16 23:17:33 +01:00
screenshot.c screenshot: avoid confusing template error message with no file 2015-09-02 10:34:36 +02:00
screenshot.h client API: add a screenshot_raw command 2015-04-20 23:11:03 +02:00
scripting.c path: make mp_path_join accept normal C strings 2015-05-09 15:26:47 +02:00
sub.c player: remove OSD subtitle render path 2015-11-17 01:56:23 +01:00
video.c player: use demuxer ts offset to simplify timeline ts handling 2015-11-16 23:17:33 +01:00