[vlc-devel] [PATCH 03/24] vout: pass cfg and fmt to VOUT_DISPLAY_RESET_PICTURES

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


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

diff --git a/include/vlc_vout_display.h b/include/vlc_vout_display.h
index 70223bad97..21abb841c1 100644
--- a/include/vlc_vout_display.h
+++ b/include/vlc_vout_display.h
@@ -122,7 +122,7 @@ enum {
     /* Ask to reset the internal buffers after a VOUT_DISPLAY_EVENT_PICTURES_INVALID
      * request.
      */
-    VOUT_DISPLAY_RESET_PICTURES,
+    VOUT_DISPLAY_RESET_PICTURES, /* const vout_display_cfg_t *, es_format_t * */
 
 #if defined(_WIN32) || defined(__OS2__)
     /* Ask the module to acknowledge/refuse the fullscreen state change after
diff --git a/src/video_output/display.c b/src/video_output/display.c
index 2ef32bf1b2..ae0f32ae19 100644
--- a/src/video_output/display.c
+++ b/src/video_output/display.c
@@ -738,7 +738,8 @@ bool vout_ManageDisplay(vout_display_t *vd, bool allow_reset_pictures)
 
     if (allow_reset_pictures
      && atomic_exchange(&osys->reset_pictures, false)) {
-        if (vout_display_Control(vd, VOUT_DISPLAY_RESET_PICTURES)) {
+        if (vout_display_Control(vd, VOUT_DISPLAY_RESET_PICTURES, vd->cfg,
+                                 &vd->fmt)) {
             /* FIXME what to do here ? */
             msg_Err(vd, "Failed to reset pictures (probably fatal)");
         }
-- 
2.19.1



More information about the vlc-devel mailing list