vlc | branch: master | Steve Lhomme <[email protected]> | 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); _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
