[vlc-devel] [PATCH v2 12/18] vout_wrapper: constify the input video_format

Steve Lhomme robux4 at ycbcr.xyz
Tue Nov 24 11:46:35 CET 2020


---
 src/video_output/vout_private.h | 2 +-
 src/video_output/vout_wrapper.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/video_output/vout_private.h b/src/video_output/vout_private.h
index 5e8c58dabe7..64b3bb08ac0 100644
--- a/src/video_output/vout_private.h
+++ b/src/video_output/vout_private.h
@@ -45,7 +45,7 @@ struct vout_thread_private_t
 
 /* */
 vout_display_t *vout_OpenWrapper(vout_thread_t *, vout_thread_private_t *, const char *,
-                     const vout_display_cfg_t *, video_format_t *, vlc_video_context *);
+                     const vout_display_cfg_t *, const video_format_t *, vlc_video_context *);
 void vout_CloseWrapper(vout_thread_t *, vout_thread_private_t *, vout_display_t *vd);
 
 void vout_InitInterlacingSupport(vout_thread_t *, vout_thread_private_t *);
diff --git a/src/video_output/vout_wrapper.c b/src/video_output/vout_wrapper.c
index 9d819f8a2df..a8242041650 100644
--- a/src/video_output/vout_wrapper.c
+++ b/src/video_output/vout_wrapper.c
@@ -57,7 +57,7 @@ static void VoutViewpointMoved(void *sys, const vlc_viewpoint_t *vp)
  *****************************************************************************/
 vout_display_t *vout_OpenWrapper(vout_thread_t *vout, vout_thread_private_t *sys,
                      const char *splitter_name, const vout_display_cfg_t *cfg,
-                     video_format_t *fmt, vlc_video_context *vctx)
+                     const video_format_t *fmt, vlc_video_context *vctx)
 {
     vout_display_t *vd;
     vout_display_owner_t owner = {
-- 
2.26.2



More information about the vlc-devel mailing list