summaryrefslogtreecommitdiffstats
path: root/sub/osd_libass.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-12-21 19:06:37 +0100
committerwm4 <wm4@nowhere>2013-12-21 20:50:13 +0100
commit3846fc758789711347c0b11f87736b27fc6210a0 (patch)
treee9b01445291326f0a026e0b002d78f1487d781b2 /sub/osd_libass.c
parent92f9b514263d8becf670c19567826bd288595fe7 (diff)
downloadmpv-3846fc758789711347c0b11f87736b27fc6210a0.tar.bz2
mpv-3846fc758789711347c0b11f87736b27fc6210a0.tar.xz
sub/osd: mp_msg conversions
Diffstat (limited to 'sub/osd_libass.c')
-rw-r--r--sub/osd_libass.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sub/osd_libass.c b/sub/osd_libass.c
index 3e6efe6667..48083bc71f 100644
--- a/sub/osd_libass.c
+++ b/sub/osd_libass.c
@@ -48,7 +48,8 @@ static void create_ass_renderer(struct osd_state *osd, struct osd_object *obj)
if (obj->osd_render)
return;
- obj->osd_ass_library = mp_ass_init(osd->opts);
+ struct mp_log *ass_log = mp_log_new(obj, osd->log, "libass");
+ obj->osd_ass_library = mp_ass_init(osd->global, ass_log);
ass_add_font(obj->osd_ass_library, "mpv-osd-symbols", (void *)osd_font_pfb,
sizeof(osd_font_pfb) - 1);
@@ -56,7 +57,8 @@ static void create_ass_renderer(struct osd_state *osd, struct osd_object *obj)
if (!obj->osd_render)
abort();
- mp_ass_configure_fonts(obj->osd_render, osd->opts->osd_style);
+ mp_ass_configure_fonts(obj->osd_render, osd->opts->osd_style,
+ osd->global, ass_log);
ass_set_aspect_ratio(obj->osd_render, 1.0, 1.0);
}