mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-30 07:04:17 +00:00
FS-11226: [freeswitch-core,mod_conference] Missing font files can lead to crash in conference #resolve
This commit is contained in:
1 parent
bc3e1c9e7d
commit
79ccf87ae7
2 files changed
+33
-17
No files matched your search
@@ -2196,6 +2196,11 @@ SWITCH_DECLARE(switch_image_t *) switch_img_write_text_img(int w, int h, switch_
|
||||
} else {
|
||||
width = pre_width;
|
||||
}
|
||||
|
||||
if (width == 0 || height == 0) {
|
||||
txtimg = NULL;
|
||||
goto done;
|
||||
}
|
||||
|
||||
//if (bg) {
|
||||
// txtimg = switch_img_alloc(NULL, SWITCH_IMG_FMT_I420, width, height, 1);
|
||||
@@ -2224,6 +2229,9 @@ SWITCH_DECLARE(switch_image_t *) switch_img_write_text_img(int w, int h, switch_
|
||||
txtimg,
|
||||
x, y,
|
||||
txt, NULL, fg, bg, 0, 0);
|
||||
|
||||
done:
|
||||
|
||||
switch_img_txt_handle_destroy(&txthandle);
|
||||
|
||||
switch_safe_free(duptxt);
|
||||
|
||||
Reference in new issue
Block a user