[vlc-devel] [PATCH 2/6] hw:d3d11:d3d11_instance: always set the d3dcontext even on failure
Steve Lhomme
robux4 at videolabs.io
Fri Nov 24 16:24:44 CET 2017
CID #1462218
---
modules/hw/d3d11/d3d11_instance.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/modules/hw/d3d11/d3d11_instance.c b/modules/hw/d3d11/d3d11_instance.c
index 1011de4d84..0e19398eae 100644
--- a/modules/hw/d3d11/d3d11_instance.c
+++ b/modules/hw/d3d11/d3d11_instance.c
@@ -40,12 +40,10 @@ static size_t instances = 0;
void D3D11_FilterHoldInstance(filter_t *filter, d3d11_device_t *out, D3D11_TEXTURE2D_DESC *dstDesc)
{
+ out->d3dcontext = NULL;
picture_t *pic = filter_NewPicture(filter);
if (!pic)
- {
- out->d3dcontext = NULL;
return;
- }
picture_sys_t *p_sys = ActivePictureSys(pic);
--
2.14.2
More information about the vlc-devel
mailing list