vlc/vlc-3.0 | branch: master | Steve Lhomme <rob...@videolabs.io> | Tue Dec 12 
14:13:41 2017 +0100| [fa1d70023e8b817805549891e3a1c032e2ceb6d4] | committer: 
Hugo Beauzée-Luyssen

direct3d11: pass some variables as const

Signed-off-by: Jean-Baptiste Kempf <j...@videolan.org>
(cherry picked from commit 7be22caa53fe01857a863581a9ee0079ee57d653)
Signed-off-by: Hugo Beauzée-Luyssen <h...@beauzee.fr>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=fa1d70023e8b817805549891e3a1c032e2ceb6d4
---

 modules/video_output/win32/direct3d11.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/video_output/win32/direct3d11.c 
b/modules/video_output/win32/direct3d11.c
index 20f15ad0fd..105ae2d4c2 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -219,7 +219,7 @@ static int  Direct3D11Open (vout_display_t *);
 static void Direct3D11Close(vout_display_t *);
 
 static int SetupOutputFormat(vout_display_t *, video_format_t *);
-static int  Direct3D11CreateFormatResources (vout_display_t *, video_format_t 
*);
+static int  Direct3D11CreateFormatResources (vout_display_t *, const 
video_format_t *);
 static int  Direct3D11CreateGenericResources(vout_display_t *);
 static void Direct3D11DestroyResources(vout_display_t *);
 
@@ -1952,7 +1952,7 @@ static bool CanUseTextureArray(vout_display_t *vd)
 
 /* TODO : handle errors better
    TODO : seperate out into smaller functions like createshaders */
-static int Direct3D11CreateFormatResources(vout_display_t *vd, video_format_t 
*fmt)
+static int Direct3D11CreateFormatResources(vout_display_t *vd, const 
video_format_t *fmt)
 {
     vout_display_sys_t *sys = vd->sys;
     HRESULT hr;

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to