[vlc-commits] d3d11_surface: fix possible recursive definition

Steve Lhomme git at videolan.org
Wed Jul 10 10:57:03 CEST 2019


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Jul  9 14:24:41 2019 +0200| [d4715ba0d679ba817251ba4a9a53c406f0aa9cec] | committer: Steve Lhomme

d3d11_surface: fix possible recursive definition

Clang doesn't like it

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

 modules/hw/d3d11/d3d11_surface.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/hw/d3d11/d3d11_surface.c b/modules/hw/d3d11/d3d11_surface.c
index f1296044c2..70f10d4967 100644
--- a/modules/hw/d3d11/d3d11_surface.c
+++ b/modules/hw/d3d11/d3d11_surface.c
@@ -198,8 +198,8 @@ static int assert_staging(filter_t *p_filter, picture_sys_d3d11_t *p_sys)
                 hr = ID3D11Device_CreateTexture2D( d3d_dev.d3ddevice, &texDesc, NULL, &sys->procOutTexture);
                 if (SUCCEEDED(hr) && SUCCEEDED(hr = can_map(sys, p_sys->context)))
                 {
-                    d3d11_device_t d3d_dev = { .d3ddevice = d3d_dev.d3ddevice, .d3dcontext = p_sys->context };
-                    if (SetupProcessor(p_filter, &d3d_dev, srcFormat, new_fmt->formatTexture))
+                    d3d11_device_t proc_dev = { .d3ddevice = d3d_dev.d3ddevice, .d3dcontext = p_sys->context };
+                    if (SetupProcessor(p_filter, &proc_dev, srcFormat, new_fmt->formatTexture))
                     {
                         ID3D11Texture2D_Release(sys->procOutTexture);
                         ID3D11Texture2D_Release(sys->staging);



More information about the vlc-commits mailing list