vlc | branch: master | Steve Lhomme <[email protected]> | Mon May 29 13:29:56 2017 +0200| [cf47260f3e5323346a8e86a72c8c00efe2ecc4e2] | committer: Jean-Baptiste Kempf
d3d11va: no need to type the intermediate recipient of QueryInterface results Signed-off-by: Jean-Baptiste Kempf <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cf47260f3e5323346a8e86a72c8c00efe2ecc4e2 --- modules/codec/avcodec/d3d11va.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/codec/avcodec/d3d11va.c b/modules/codec/avcodec/d3d11va.c index 78fcdbf771..034beb0b41 100644 --- a/modules/codec/avcodec/d3d11va.c +++ b/modules/codec/avcodec/d3d11va.c @@ -419,8 +419,8 @@ static int Open(vlc_va_t *va, AVCodecContext *ctx, enum PixelFormat pix_fmt, dx_sys->d3ddev = NULL; va->sys->render = DXGI_FORMAT_UNKNOWN; if ( p_sys != NULL && p_sys->context != NULL ) { - ID3D11VideoContext *d3dvidctx = NULL; - HRESULT hr = ID3D11DeviceContext_QueryInterface(p_sys->context, &IID_ID3D11VideoContext, (void **)&d3dvidctx); + void *d3dvidctx = NULL; + HRESULT hr = ID3D11DeviceContext_QueryInterface(p_sys->context, &IID_ID3D11VideoContext, &d3dvidctx); if (FAILED(hr)) { msg_Err(va, "Could not Query ID3D11VideoContext Interface from the picture. (hr=0x%lX)", hr); } else { @@ -519,8 +519,8 @@ static int D3dCreateDevice(vlc_va_t *va) dx_sys->d3ddev = d3ddev; va->sys->d3dctx = d3dctx; - ID3D11VideoContext *d3dvidctx = NULL; - hr = ID3D11DeviceContext_QueryInterface(d3dctx, &IID_ID3D11VideoContext, (void **)&d3dvidctx); + void *d3dvidctx = NULL; + hr = ID3D11DeviceContext_QueryInterface(d3dctx, &IID_ID3D11VideoContext, &d3dvidctx); if (FAILED(hr)) { msg_Err(va, "Could not Query ID3D11VideoContext Interface. (hr=0x%lX)", hr); return VLC_EGENERIC; @@ -614,8 +614,8 @@ static int DxCreateVideoService(vlc_va_t *va) { directx_sys_t *dx_sys = &va->sys->dx_sys; - ID3D11VideoDevice *d3dviddev = NULL; - HRESULT hr = ID3D11Device_QueryInterface( dx_sys->d3ddev, &IID_ID3D11VideoDevice, (void **)&d3dviddev); + void *d3dviddev = NULL; + HRESULT hr = ID3D11Device_QueryInterface(dx_sys->d3ddev, &IID_ID3D11VideoDevice, &d3dviddev); if (FAILED(hr)) { msg_Err(va, "Could not Query ID3D11VideoDevice Interface. (hr=0x%lX)", hr); return VLC_EGENERIC; _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
