vlc/vlc-3.0 | branch: master | Steve Lhomme <[email protected]> | Fri Feb 9 16:40:59 2018 +0100| [d4344d49eb1b61e5bac5625385aabd14c8116601] | committer: Hugo Beauzée-Luyssen
direct3d11: use the right interface to release (cherry picked from commit 4fa9e48986d365a2f66de437e59a4c802fc3a539) Signed-off-by: Hugo Beauzée-Luyssen <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=d4344d49eb1b61e5bac5625385aabd14c8116601 --- modules/video_output/win32/direct3d11.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c index 140c51e490..c1841156f5 100644 --- a/modules/video_output/win32/direct3d11.c +++ b/modules/video_output/win32/direct3d11.c @@ -2158,7 +2158,7 @@ static int Direct3D11CreateGenericResources(vout_display_t *vd) ID3D10Blob_GetBufferSize(pVSBlob), NULL, &sys->flatVSShader); if(FAILED(hr)) { - ID3D11Device_Release(pVSBlob); + ID3D10Blob_Release(pVSBlob); msg_Err(vd, "Failed to create the flat vertex shader. (hr=0x%lX)", hr); return VLC_EGENERIC; } @@ -2189,7 +2189,7 @@ static int Direct3D11CreateGenericResources(vout_display_t *vd) ID3D10Blob_GetBufferSize(pVSBlob), NULL, &sys->projectionVSShader); if(FAILED(hr)) { - ID3D11Device_Release(pVSBlob); + ID3D10Blob_Release(pVSBlob); msg_Err(vd, "Failed to create the projection vertex shader. (hr=0x%lX)", hr); return VLC_EGENERIC; } _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
