[vlc-devel] [PATCH 1/9] video_output: update the crop when the multiview mode changes

Steve Lhomme robux4 at ycbcr.xyz
Sat Oct 27 08:46:27 CEST 2018


The multiview mode may change the internal crop values.
---
 src/video_output/display.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/video_output/display.c b/src/video_output/display.c
index 2b91240841..abe7aeb58a 100644
--- a/src/video_output/display.c
+++ b/src/video_output/display.c
@@ -787,9 +787,11 @@ void vout_UpdateDisplaySourceProperties(vout_display_t *vd, const video_format_t
     if (source->i_x_offset       != osys->source.i_x_offset ||
         source->i_y_offset       != osys->source.i_y_offset ||
         source->i_visible_width  != osys->source.i_visible_width ||
-        source->i_visible_height != osys->source.i_visible_height) {
+        source->i_visible_height != osys->source.i_visible_height ||
+        source->multiview_mode   != osys->source.multiview_mode ) {
 
         video_format_CopyCrop(&osys->source, source);
+        osys->source.multiview_mode = source->multiview_mode;
 
         /* Force the vout to reapply the current user crop settings over the new decoder
          * crop settings. */
-- 
2.17.0



More information about the vlc-devel mailing list