From 7484ae8e2ee5327400358e7c7cb974d84543aef6 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 7 Aug 2012 02:12:15 +0200 Subject: osd_libass: allocate separate ASS_Library for OSD osd_libass.c used the same ASS_Library object as the player core. This caused a problem: when playing a new file, all fonts loaded by the ASS_Library object were unloaded, including the OSD font. Parts of the OSD would stop being rendered correctly. Solve this by creating a separate ASS_Library, with its own set of fonts. --- mplayer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mplayer.c') diff --git a/mplayer.c b/mplayer.c index f99b645494..a7b76b63cd 100644 --- a/mplayer.c +++ b/mplayer.c @@ -4286,7 +4286,7 @@ int main(int argc, char *argv[]) mpctx->ass_library = mp_ass_init(opts); #endif - mpctx->osd = osd_create(opts, mpctx->ass_library); + mpctx->osd = osd_create(opts); init_input(mpctx); -- cgit v1.2.3