FS-7724: [mod_conference] fix segfault when missing fonts when trying to render banner

This commit is contained in:
Michael Jerris authored and Brian West committed 2015-06-24 17:10:24 -05:00
1 parent d5c6443b23
commit f727cdb9d1
2 files changed
+19 -9

No files matched your search

+2
View File
@@ -883,6 +883,8 @@ SWITCH_DECLARE(uint32_t) switch_img_txt_handle_render(switch_img_txt_handle_t *h
if (zstr(text)) return 0;
if (!handle) return 0;
switch_assert(!img || img->fmt == SWITCH_IMG_FMT_I420 || img->fmt == SWITCH_IMG_FMT_ARGB);
if (font_family) {