]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-10871: [mod_conference] Zoomed layouts do not auto-center in mod_conference #resolve
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 5 Jan 2018 04:12:57 +0000 (22:12 -0600)
committerMuteesa Fred <muteesafred@hotmail.com>
Tue, 24 Jul 2018 07:21:38 +0000 (07:21 +0000)
src/mod/applications/mod_conference/conference_video.c

index e66a6dd68911945bacc51cd70c2e6dbc2ba14a94..2fab1a01a300933e02d1ad65bc107a8621b32155 100644 (file)
@@ -743,7 +743,7 @@ void conference_video_scale_and_patch(mcu_layer_t *layer, switch_image_t *ximg,
                                        } else {
                                                crop_x = use_geometry->x;
                                        }
-                               } else if (screen_aspect > img_aspect) {
+                               } else if (screen_aspect < img_aspect) {
                                        crop_x = img->d_w / 4;
                                }
 
@@ -753,7 +753,7 @@ void conference_video_scale_and_patch(mcu_layer_t *layer, switch_image_t *ximg,
                                        } else {
                                                crop_y = use_geometry->y;
                                        }
-                               } else if (screen_aspect < img_aspect) {
+                               } else if (screen_aspect > img_aspect) {
                                        crop_y = img->d_h / 4;
                                }