]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-10225: [mod_conference] Incorrect layout chosen when playing a file in a conferenc...
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 20 Apr 2017 21:41:53 +0000 (16:41 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 20 Apr 2017 21:41:58 +0000 (16:41 -0500)
src/mod/applications/mod_conference/conference_video.c

index 7c6fc094e27bb10da29985a17526c2c7bbc998a7..7430b7899ff44d37827c036bbebffab936ea07a0 100644 (file)
@@ -1846,7 +1846,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;
                        }