[vlc-devel] [PATCH 02/24] vout: pass cfg to VOUT_DISPLAY_CHANGE_SOURCE_* controls

Thomas Guillem thomas at gllm.fr
Wed Oct 31 17:49:57 CET 2018


---
 include/vlc_vout_display.h | 4 ++--
 src/video_output/display.c | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/include/vlc_vout_display.h b/include/vlc_vout_display.h
index 568233cddf..70223bad97 100644
--- a/include/vlc_vout_display.h
+++ b/include/vlc_vout_display.h
@@ -145,13 +145,13 @@ enum {
 
     /* Ask the module to acknowledge/refuse source aspect ratio after being
      * requested externally */
-    VOUT_DISPLAY_CHANGE_SOURCE_ASPECT,
+    VOUT_DISPLAY_CHANGE_SOURCE_ASPECT, /* const vout_display_cfg_t *p_cfg */
 
     /* Ask the module to acknowledge/refuse source crop change after being
      * requested externally.
      * The cropping requested is stored by source video_format_t::i_x/y_offset
      * and video_format_t::i_visible_width/height */
-    VOUT_DISPLAY_CHANGE_SOURCE_CROP,
+    VOUT_DISPLAY_CHANGE_SOURCE_CROP, /* const vout_display_cfg_t *p_cfg */
 
     /* Ask the module to acknowledge/refuse VR/360° viewing direction after
      * being requested externally */
diff --git a/src/video_output/display.c b/src/video_output/display.c
index 21b0b3ed87..2ef32bf1b2 100644
--- a/src/video_output/display.c
+++ b/src/video_output/display.c
@@ -675,7 +675,7 @@ bool vout_ManageDisplay(vout_display_t *vd, bool allow_reset_pictures)
             vd->source.i_sar_den = osys->source.i_sar_den;
         }
 
-        vout_display_Control(vd, VOUT_DISPLAY_CHANGE_SOURCE_ASPECT);
+        vout_display_Control(vd, VOUT_DISPLAY_CHANGE_SOURCE_ASPECT, vd->cfg);
         osys->sar.num = vd->source.i_sar_num;
         osys->sar.den = vd->source.i_sar_den;
         osys->ch_sar  = false;
@@ -723,7 +723,7 @@ bool vout_ManageDisplay(vout_display_t *vd, bool allow_reset_pictures)
         vd->source.i_visible_height = bottom - top;
         video_format_Print(VLC_OBJECT(vd), "SOURCE ", &osys->source);
         video_format_Print(VLC_OBJECT(vd), "CROPPED", &vd->source);
-        vout_display_Control(vd, VOUT_DISPLAY_CHANGE_SOURCE_CROP);
+        vout_display_Control(vd, VOUT_DISPLAY_CHANGE_SOURCE_CROP, vd->cfg);
         osys->crop.left   = left - osys->source.i_x_offset;
         osys->crop.top    = top  - osys->source.i_y_offset;
         /* FIXME for right/bottom we should keep the 'type' border vs window */
-- 
2.19.1



More information about the vlc-devel mailing list