summaryrefslogtreecommitdiffstats
path: root/player/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'player/main.c')
-rw-r--r--player/main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/player/main.c b/player/main.c
index 0cf0a1a447..7ca64ed664 100644
--- a/player/main.c
+++ b/player/main.c
@@ -399,13 +399,14 @@ static int mpv_main(int argc, char *argv[])
getch2_enable();
#if HAVE_LIBASS
- mpctx->ass_library = mp_ass_init(opts);
+ mpctx->ass_log = mp_log_new(mpctx, mpctx->global->log, "!libass");
+ mpctx->ass_library = mp_ass_init(mpctx->global, mpctx->ass_log);
#else
MP_WARN(mpctx, "Compiled without libass.\n");
MP_WARN(mpctx, "There will be no OSD and no text subtitles.\n");
#endif
- mpctx->osd = osd_create(opts);
+ mpctx->osd = osd_create(mpctx->global);
if (opts->force_vo) {
opts->fixed_vo = 1;