From: Seven Du Date: Mon, 17 Dec 2018 15:20:43 +0000 (+0800) Subject: FS-11573 fix seg when missing conference layout config X-Git-Tag: v1.8.6~1^2~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=20e370aa2a60593dfcf46c9daacf3a589c015891;p=thirdparty%2Ffreeswitch.git FS-11573 fix seg when missing conference layout config --- diff --git a/src/mod/applications/mod_conference/conference_video.c b/src/mod/applications/mod_conference/conference_video.c index 7a78e1b1a8..ba736bcea1 100644 --- a/src/mod/applications/mod_conference/conference_video.c +++ b/src/mod/applications/mod_conference/conference_video.c @@ -2031,6 +2031,8 @@ video_layout_t *conference_video_get_layout(conference_obj_t *conference, const layout_group_t *lg = NULL; video_layout_t *vlayout = NULL; + if (!video_layout_name) return NULL; + if (video_layout_group) { lg = switch_core_hash_find(conference->layout_group_hash, video_layout_group); vlayout = conference_video_find_best_layout(conference, lg, 0, 0);