Rémi Denis-Courmont pushed to branch master at VideoLAN / VLC


Commits:
021d9833 by Romain Vimont at 2021-10-16T06:41:52+00:00
vout: fix update of display source crop

If there is no crop, the right and bottom position are the width and the
height, respectively.

Fix regression introduced by 13282687881f743ac31b5f8db8e1f94111058196.

- - - - -


1 changed file:

- src/video_output/display.c


Changes:

=====================================
src/video_output/display.c
=====================================
@@ -457,7 +457,9 @@ static int vout_UpdateSourceCrop(vout_display_t *vd)
 
     switch (osys->crop.mode) {
         case VOUT_CROP_NONE:
-            left = top = right = bottom = 0;
+            left = top = 0;
+            right = osys->source.i_visible_width;
+            bottom = osys->source.i_visible_height;
             break;
         case VOUT_CROP_RATIO:
             VoutDisplayCropRatio(&left, &top, &right, &bottom, &osys->source,



View it on GitLab: 
https://code.videolan.org/videolan/vlc/-/commit/021d98336bb6d3cde4ff16c840cc5ec09bf8bc79

-- 
View it on GitLab: 
https://code.videolan.org/videolan/vlc/-/commit/021d98336bb6d3cde4ff16c840cc5ec09bf8bc79
You're receiving this email because of your account on code.videolan.org.


_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to