Fix crash in XVideo font rendering.

This commit is contained in:
Themaister 2011-03-26 18:04:18 +01:00
parent 7e07b821aa
commit 3fda3effda
1 changed files with 3 additions and 0 deletions

View File

@ -559,6 +559,9 @@ static void calc_out_rect(bool keep_aspect, unsigned *x, unsigned *y, unsigned *
static void xv_render_msg(xv_t *xv, const char *msg, unsigned width, unsigned height)
{
#ifdef HAVE_FREETYPE
if (!xv->font)
return;
struct font_output_list out;
font_renderer_msg(xv->font, msg, &out);
struct font_output *head = out.head;