path: root/player/core.h
diff options
authorwm4 <wm4@nowhere>2014-11-15 19:43:43 +0100
committerwm4 <wm4@nowhere>2014-11-15 19:43:43 +0100
commit2125e49422137fa3164b37f7d64e2df68f07da9b (patch)
treee8b58f58e0c32a834ce1b959dd89bbc97a69292d /player/core.h
parenta6694d27889b4b65ab6d05641396724ae9696f77 (diff)
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.
Diffstat (limited to 'player/core.h')
1 files changed, 0 insertions, 1 deletions
diff --git a/player/core.h b/player/core.h
index 32239f28e3..e7402cfe5d 100644
--- a/player/core.h
+++ b/player/core.h
@@ -468,7 +468,6 @@ void uninit_sub(struct MPContext *mpctx, int order);
void uninit_sub_all(struct MPContext *mpctx);
void update_osd_msg(struct MPContext *mpctx);
void update_subtitles(struct MPContext *mpctx);
-void init_sub_renderer(struct MPContext *mpctx);
void uninit_sub_renderer(struct MPContext *mpctx);
void get_osd_sub_state(struct MPContext *mpctx, int order,
struct osd_sub_state *out_state);