[MPlayer-cvslog] r26064 - trunk/libass/ass_render.c

eugeni subversion at mplayerhq.hu
Fri Feb 22 20:31:47 CET 2008


Author: eugeni
Date: Fri Feb 22 20:31:47 2008
New Revision: 26064

Log:
Print FreeType version in libass init. Makes error logs slightly more helpful.


Modified:
   trunk/libass/ass_render.c

Modified: trunk/libass/ass_render.c
==============================================================================
--- trunk/libass/ass_render.c	(original)
+++ trunk/libass/ass_render.c	Fri Feb 22 20:31:47 2008
@@ -231,6 +231,7 @@ ass_renderer_t* ass_renderer_init(ass_li
 	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 @@ ass_renderer_t* ass_renderer_init(ass_li
 		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);



More information about the MPlayer-cvslog mailing list