[vlc-devel] [PATCH 01/14] direct3d11: factorize the same string usage
Steve Lhomme
robux4 at videolabs.io
Tue Mar 21 08:55:13 CET 2017
--
replaces https://patches.videolan.org/patch/16041/
- fix double semi-colon
---
modules/video_output/win32/direct3d11.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index 781103d..a1323ec 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -1588,10 +1588,11 @@ static HRESULT CompilePixelShader(vout_display_t *vd, const d3d_format_t *format
{
vout_display_sys_t *sys = vd->sys;
+ static const char *DEFAULT_NOOP = "return rgb";
const char *psz_sampler;
- const char *psz_src_transform = "return rgb";
- const char *psz_display_transform = "return rgb";
- const char *psz_tone_mapping = "return rgb";
+ const char *psz_src_transform = DEFAULT_NOOP;
+ const char *psz_display_transform = DEFAULT_NOOP;
+ const char *psz_tone_mapping = DEFAULT_NOOP;
switch (format->formatTexture)
{
--
2.10.1.windows.1
More information about the vlc-devel
mailing list