From 3fda3effdafb72b5594968f708072bd5d742206d Mon Sep 17 00:00:00 2001 From: Themaister Date: Sat, 26 Mar 2011 18:04:18 +0100 Subject: [PATCH] Fix crash in XVideo font rendering. --- gfx/xvideo.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gfx/xvideo.c b/gfx/xvideo.c index 12d0337d7b..ce2ad5ae95 100644 --- a/gfx/xvideo.c +++ b/gfx/xvideo.c @@ -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;