[vlc-commits] d3d11va: remove unused variables

Steve Lhomme git at videolan.org
Mon Jul 22 11:43:19 CEST 2019


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Jul 22 08:37:11 2019 +0200| [6c2431fb2570e605441b23a8d26032c570d29b5a] | committer: Steve Lhomme

d3d11va: remove unused variables

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

 modules/codec/avcodec/d3d11va.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/modules/codec/avcodec/d3d11va.c b/modules/codec/avcodec/d3d11va.c
index 90f5a00d19..d058ebc4d0 100644
--- a/modules/codec/avcodec/d3d11va.c
+++ b/modules/codec/avcodec/d3d11va.c
@@ -399,7 +399,6 @@ static int Open(vlc_va_t *va, AVCodecContext *ctx, enum PixelFormat pix_fmt,
 
     IDXGIAdapter *p_adapter = D3D11DeviceAdapter(sys->d3d_dev.d3ddevice);
     if (p_adapter) {
-        char *description = NULL;
         DXGI_ADAPTER_DESC adapterDesc;
         if (SUCCEEDED(IDXGIAdapter_GetDesc(p_adapter, &adapterDesc))) {
             msg_Info(va, "Using D3D11VA (%ls, vendor %x(%s), device %x, revision %x)",
@@ -439,7 +438,6 @@ static int D3dCreateDevice(vlc_va_t *va)
 #endif
     if (sys->d3d_dev.d3dcontext != NULL)
     {
-        ID3D11Device* d3ddevice = NULL;
         ID3D11DeviceContext_GetDevice(sys->d3d_dev.d3dcontext, &sys->d3d_dev.d3ddevice);
         ID3D11DeviceContext_AddRef(sys->d3d_dev.d3dcontext);
         ID3D11Device_Release(sys->d3d_dev.d3ddevice);



More information about the vlc-commits mailing list