Mercurial > mplayer.hg
changeset 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 | 559a244d5679 |
children | 9da3b0c393e6 |
files | libass/ass_render.c |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
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);