[vlc-commits] direct3d11: pass some variables as const
Steve Lhomme
git at videolan.org
Wed Dec 13 09:30:01 CET 2017
vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Tue Dec 12 14:13:41 2017 +0100| [7be22caa53fe01857a863581a9ee0079ee57d653] | committer: Jean-Baptiste Kempf
direct3d11: pass some variables as const
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7be22caa53fe01857a863581a9ee0079ee57d653
---
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;
More information about the vlc-commits
mailing list