FS-10031: [mod_conference] Personal canvas mode doesn't switch layouts properly when a group is specified #resolve

This commit is contained in:
Anthony Minessale 2017-02-10 14:14:55 -06:00
parent c9befbeae6
commit 0465a6dcdd

View File

@ -1419,6 +1419,8 @@ video_layout_t *conference_video_find_best_layout(conference_obj_t *conference,
{
video_layout_node_t *vlnode = NULL, *last = NULL;
if (count == 1 && file_count == 1) file_count = 0;
if (!count) {
count = conference->members_with_video;
file_count = 0;
@ -2827,7 +2829,7 @@ void *SWITCH_THREAD_FUNC conference_video_muxing_thread_run(switch_thread_t *thr
total = 0;
}
if (canvas->video_layout_group && (lg = switch_core_hash_find(conference->layout_group_hash, canvas->video_layout_group))) {
if (conference->video_layout_group && (lg = switch_core_hash_find(conference->layout_group_hash, conference->video_layout_group))) {
if ((vlayout = conference_video_find_best_layout(conference, lg, total + file_count, file_count))) {
conference_video_init_canvas_layers(conference, imember->canvas, vlayout);
}