Mercurial > mplayer.hg
diff libass/ass_render.c @ 26032:93dcb01491cf
Print FreeType version in libass init. Makes error logs slightly more helpful.
author | eugeni |
---|---|
date | Fri, 22 Feb 2008 19:31:47 +0000 |
parents | d7ab7fda755a |
children | 9da3b0c393e6 |
line wrap: on
line diff
--- a/libass/ass_render.c Fri Feb 22 17:38:20 2008 +0000 +++ b/libass/ass_render.c Fri Feb 22 19:31:47 2008 +0000 @@ -231,6 +231,7 @@ int error; FT_Library ft; ass_renderer_t* priv = 0; + int vmajor, vminor, vpatch; memset(&render_context, 0, sizeof(render_context)); memset(&frame_context, 0, sizeof(frame_context)); @@ -242,6 +243,12 @@ goto ass_init_exit; } + FT_Library_Version(ft, &vmajor, &vminor, &vpatch); + mp_msg(MSGT_ASS, MSGL_V, "FreeType library version: %d.%d.%d\n", + vmajor, vminor, vpatch); + mp_msg(MSGT_ASS, MSGL_V, "FreeType headers version: %d.%d.%d\n", + FREETYPE_MAJOR, FREETYPE_MINOR, FREETYPE_PATCH); + priv = calloc(1, sizeof(ass_renderer_t)); if (!priv) { FT_Done_FreeType(ft);