player: add option not to use OSD/fontconfig

Makeshift-solution for working around certain fontconfig issues.

With --use-text-osd=no, libass and fontconfig won't be initialized, and
fontconfig won't block everything with scanning for fonts.
This commit is contained in:
wm4
2014-11-25 11:08:25 +01:00
parent 28b6ce39d3
commit 26190dbe57
4 changed files with 16 additions and 0 deletions

View File

@@ -471,6 +471,9 @@ static void update_object(struct osd_state *osd, struct osd_object *obj)
void osd_object_get_bitmaps(struct osd_state *osd, struct osd_object *obj,
struct sub_bitmaps *out_imgs)
{
if (!osd->opts->use_text_osd)
return;
if (obj->force_redraw)
update_object(osd, obj);