1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-25 04:38:01 +00:00

mplayer: print a warning if libass is not compiled

Libass is technically an optional dependency, but in practice users
tend to disable libass accidentally or for the hell of it to get
something "minimal", without being aware of the consequences.
This commit is contained in:
wm4 2013-10-13 22:25:21 +02:00
parent 1560d6ce60
commit eeac26410f

View File

@ -5009,6 +5009,9 @@ static int mpv_main(int argc, char *argv[])
#ifdef CONFIG_ASS
mpctx->ass_library = mp_ass_init(opts);
#else
mp_msg(MSGT_CPLAYER, MSGL_WARN, "Compiled without libass.\n");
mp_msg(MSGT_CPLAYER, MSGL_WARN, "There will be no OSD and no text subs.\n");
#endif
mpctx->osd = osd_create(opts, mpctx->ass_library);