[vlc-devel] [PATCH] [RFC] use the default display size when the crop changes

Steve Lhomme robux4 at gmail.com
Fri Sep 4 09:47:57 CEST 2015


This would fix https://forum.videolan.org/viewtopic.php?p=423157 on the 2.2
branch. On 3.0.0 it doesn't happen because another proper fit_window happens
after the crop is handled.

When crop is handled, there's no reason to keep the previous height, it's just
like another window size change. Same thing with aspect ratio. I'm not sure why
it's handled differently.
---
 src/video_output/display.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/video_output/display.c b/src/video_output/display.c
index 76287cf..48cb0cf 100644
--- a/src/video_output/display.c
+++ b/src/video_output/display.c
@@ -1018,7 +1018,7 @@ bool vout_ManageDisplay(vout_display_t *vd, bool allow_reset_pictures)
                  * vout module (easy)
                  */
             } else if (!osys->fit_window) {
-                osys->fit_window = 1;
+                osys->fit_window = -1;
             }
             vd->source = source;
             osys->crop.left   = source.i_x_offset - osys->source.i_x_offset;
-- 
2.5.0



More information about the vlc-devel mailing list