FS-10225: [mod_conference] Incorrect layout chosen when playing a file in a conference with a layout group -- fix regression when playing files into a group layout

This commit is contained in:
Anthony Minessale 2017-04-20 16:41:53 -05:00 committed by Mike Jerris
parent b0a295e2e3
commit 47af36ff83
1 changed files with 1 additions and 1 deletions

View File

@ -1403,7 +1403,7 @@ video_layout_t *conference_video_find_best_layout(conference_obj_t *conference,
break;
}
if (vlnode->vlayout->layers - file_layers >= (int)count) {
if (vlnode->vlayout->layers - file_layers >= (int)count + file_count) {
if (!least || least->vlayout->layers > vlnode->vlayout->layers) {
least = vlnode;
}