diff options
author | wm4 <wm4@nowhere> | 2013-10-13 22:25:21 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-10-13 22:25:33 +0200 |
commit | eeac26410f418ef45f15a7f1e9061d4eac25621b (patch) | |
tree | 4c51b7787b92cf1605eb205f259180cedea5ae9d /mpvcore | |
parent | 1560d6ce60db425e59aca4371ba9dff967fde69e (diff) | |
download | mpv-eeac26410f418ef45f15a7f1e9061d4eac25621b.tar.bz2 mpv-eeac26410f418ef45f15a7f1e9061d4eac25621b.tar.xz |
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.
Diffstat (limited to 'mpvcore')
-rw-r--r-- | mpvcore/mplayer.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); |