diff options
author | wm4 <wm4@nowhere> | 2014-11-25 11:08:25 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-11-25 11:08:25 +0100 |
commit | 26190dbe579833ab0a5d5ccc754a908af94fbda0 (patch) | |
tree | b264572e70d2ba8f58e2d194e3a1d28485780e81 /sub | |
parent | 28b6ce39d3d88d0159b54c8ca558e993eac93056 (diff) | |
download | mpv-26190dbe579833ab0a5d5ccc754a908af94fbda0.tar.bz2 mpv-26190dbe579833ab0a5d5ccc754a908af94fbda0.tar.xz |
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.
Diffstat (limited to 'sub')
-rw-r--r-- | sub/osd_libass.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); |