From 26190dbe579833ab0a5d5ccc754a908af94fbda0 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 25 Nov 2014 11:08:25 +0100 Subject: 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. --- sub/osd_libass.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sub') diff --git a/sub/osd_libass.c b/sub/osd_libass.c index 3275cc59e6..573a373a06 100644 --- a/sub/osd_libass.c +++ b/sub/osd_libass.c @@ -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); -- cgit v1.2.3