From eeac26410f418ef45f15a7f1e9061d4eac25621b Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 13 Oct 2013 22:25:21 +0200 Subject: 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. --- mpvcore/mplayer.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mpvcore/mplayer.c b/mpvcore/mplayer.c index 4d745cf107..33a878176c 100644 --- a/mpvcore/mplayer.c +++ b/mpvcore/mplayer.c @@ -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); -- cgit v1.2.3