[vlc-commits] d3d11va: fix a crash when we can't allocate the decoding texture
Steve Lhomme
git at videolan.org
Fri Feb 5 19:30:06 CET 2016
vlc | branch: master | Steve Lhomme <robux4 at gmail.com> | Sat Jan 30 09:26:38 2016 +0100| [41129b465ce9533427f369186aa476108de218f0] | committer: Jean-Baptiste Kempf
d3d11va: fix a crash when we can't allocate the decoding texture
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=41129b465ce9533427f369186aa476108de218f0
---
modules/codec/avcodec/d3d11va.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/modules/codec/avcodec/d3d11va.c b/modules/codec/avcodec/d3d11va.c
index 8998b15..c8d392f 100644
--- a/modules/codec/avcodec/d3d11va.c
+++ b/modules/codec/avcodec/d3d11va.c
@@ -711,6 +711,7 @@ static int DxCreateDecoderSurfaces(vlc_va_t *va, int codec_id, const video_forma
hr = ID3D11Device_CreateTexture2D( (ID3D11Device*) dx_sys->d3ddev, &texDesc, NULL, &p_texture );
if (FAILED(hr)) {
msg_Err(va, "CreateTexture2D %d failed. (hr=0x%0lx)", dx_sys->surface_count, hr);
+ dx_sys->surface_count = 0;
return VLC_EGENERIC;
}
More information about the vlc-commits
mailing list