Mercurial > mplayer.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
26031:559a244d5679 | 26032:93dcb01491cf |
---|---|
229 ass_renderer_t* ass_renderer_init(ass_library_t* library) | 229 ass_renderer_t* ass_renderer_init(ass_library_t* library) |
230 { | 230 { |
231 int error; | 231 int error; |
232 FT_Library ft; | 232 FT_Library ft; |
233 ass_renderer_t* priv = 0; | 233 ass_renderer_t* priv = 0; |
234 int vmajor, vminor, vpatch; | |
234 | 235 |
235 memset(&render_context, 0, sizeof(render_context)); | 236 memset(&render_context, 0, sizeof(render_context)); |
236 memset(&frame_context, 0, sizeof(frame_context)); | 237 memset(&frame_context, 0, sizeof(frame_context)); |
237 memset(&text_info, 0, sizeof(text_info)); | 238 memset(&text_info, 0, sizeof(text_info)); |
238 | 239 |
239 error = FT_Init_FreeType( &ft ); | 240 error = FT_Init_FreeType( &ft ); |
240 if ( error ) { | 241 if ( error ) { |
241 mp_msg(MSGT_ASS, MSGL_FATAL, MSGTR_LIBASS_FT_Init_FreeTypeFailed); | 242 mp_msg(MSGT_ASS, MSGL_FATAL, MSGTR_LIBASS_FT_Init_FreeTypeFailed); |
242 goto ass_init_exit; | 243 goto ass_init_exit; |
243 } | 244 } |
245 | |
246 FT_Library_Version(ft, &vmajor, &vminor, &vpatch); | |
247 mp_msg(MSGT_ASS, MSGL_V, "FreeType library version: %d.%d.%d\n", | |
248 vmajor, vminor, vpatch); | |
249 mp_msg(MSGT_ASS, MSGL_V, "FreeType headers version: %d.%d.%d\n", | |
250 FREETYPE_MAJOR, FREETYPE_MINOR, FREETYPE_PATCH); | |
244 | 251 |
245 priv = calloc(1, sizeof(ass_renderer_t)); | 252 priv = calloc(1, sizeof(ass_renderer_t)); |
246 if (!priv) { | 253 if (!priv) { |
247 FT_Done_FreeType(ft); | 254 FT_Done_FreeType(ft); |
248 goto ass_init_exit; | 255 goto ass_init_exit; |