[vlc-commits] [Git][videolan/vlc][master] video_output: pass the wrapper video_format_t as a const pointer

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Tue Jul 13 08:53:58 UTC 2021



Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC


Commits:
02e1431a by Steve Lhomme at 2021-07-13T08:32:52+00:00
video_output: pass the wrapper video_format_t as a const pointer

It is not and should not be modified.

- - - - -


2 changed files:

- src/video_output/vout_private.h
- src/video_output/vout_wrapper.c


Changes:

=====================================
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 *);


=====================================
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 = {



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/02e1431a250edb78490fa6200cddd21c8d64922c

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/02e1431a250edb78490fa6200cddd21c8d64922c
You're receiving this email because of your account on code.videolan.org.




More information about the vlc-commits mailing list