1
mirror of https://github.com/mpv-player/mpv synced 2024-11-07 01:47:00 +01:00
mpv/player
wm4 2125e49422 sub: workaround braindead libass API
libass won't use embedded fonts, unless ass_set_fonts() (called by
mp_ass_configure_fonts()) is called. However, we call this function when
the ASS_Renderer is initialized, which is long before the .ass file is
actually loaded. (I'm not sure why it tries to keep 1 ASS_Renderer, but
it always did this.)

Fix by calling mp_ass_configure_fonts() after loading them. This also
means this function will be called multiple times - hopefully this is
harmless (it will reinit fontconfig every time, though).

While we're at it, also initialize the ASS_Renderer lazily.

Fixes #1244.
2014-11-15 19:43:43 +01:00
..
lua osc: make text squuezing layout dependent 2014-10-24 01:56:15 +02:00
timeline player: always use demux_chapter 2014-11-02 17:29:41 +01:00
audio.c audio: fix some issues when reloading the AO 2014-11-12 14:19:16 +01:00
client.c client: remove redundant assignment 2014-11-07 16:21:03 +01:00
client.h command: finish hook execution if client fails 2014-10-24 21:57:02 +02:00
command.c command: list filters/VOs/AOs with option-info 2014-11-14 14:52:51 +01:00
command.h command: add window-minimized property (X11 only) 2014-11-02 20:55:07 +01:00
configfiles.c options: don't load per-file config files by default 2014-10-17 02:55:31 +02:00
core.h sub: workaround braindead libass API 2014-11-15 19:43:43 +01:00
discnav.c sd_lavc: strictly letter-box PGS subtitles 2014-10-21 11:37:32 +02:00
loadfile.c sub: workaround braindead libass API 2014-11-15 19:43:43 +01:00
lua.c lua: subprocess: fix dumb 2014-10-26 01:52:31 +02:00
main_fn.c cocoa: fix build by using the correct HAVE_* macro 2014-08-06 09:31:59 +02:00
main.c player: improve exit message in some scenarios 2014-10-31 00:51:52 +01:00
misc.c player: don't display zero duration for files with unknown duration 2014-10-29 21:54:59 +01:00
osd.c player: make the osd-msg prefix work for playlist_next/prev 2014-11-11 22:07:16 +01:00
playloop.c player: don't try to use duration 0 2014-11-10 18:11:33 +01:00
screenshot.c Move compat/ and bstr/ directory contents somewhere else 2014-08-29 12:31:52 +02:00
screenshot.h Move mpvcore/player/ to player/ 2013-12-17 00:53:22 +01:00
scripting.c osdep: limit thread names to 16 characters 2014-10-20 00:17:11 +02:00
sub.c sub: workaround braindead libass API 2014-11-15 19:43:43 +01:00
video.c player: print anamorphic size only if video is anamorphic 2014-11-02 17:34:02 +01:00