[vlc-commits] d3d11_deinterlace: add missing D3D11 DLL use
Steve Lhomme
git at videolan.org
Thu Sep 27 09:54:25 CEST 2018
vlc/vlc-3.0 | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Sep 26 13:40:51 2018 +0200| [907375b1cb937a42dfb8b91817304fe2ed524154] | committer: Hugo Beauzée-Luyssen
d3d11_deinterlace: add missing D3D11 DLL use
in case the vout is deleted before the filter
(cherry picked from commit eca88bc672ce3fbe80c818a9ddb5c51f6faea8a7)
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=907375b1cb937a42dfb8b91817304fe2ed524154
---
modules/hw/d3d11/d3d11_deinterlace.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/modules/hw/d3d11/d3d11_deinterlace.c b/modules/hw/d3d11/d3d11_deinterlace.c
index 3d3ec0f393..50bf2704b9 100644
--- a/modules/hw/d3d11/d3d11_deinterlace.c
+++ b/modules/hw/d3d11/d3d11_deinterlace.c
@@ -353,6 +353,12 @@ int D3D11OpenDeinterlace(vlc_object_t *obj)
return VLC_ENOMEM;
memset(sys, 0, sizeof (*sys));
+ if ( unlikely(D3D11_Create(filter, &sys->hd3d, false) != VLC_SUCCESS ))
+ {
+ msg_Err(filter, "Could not access the d3d11.");
+ goto error;
+ }
+
D3D11_TEXTURE2D_DESC dstDesc;
D3D11_FilterHoldInstance(filter, &sys->d3d_dev, &dstDesc);
if (unlikely(sys->d3d_dev.d3dcontext==NULL))
More information about the vlc-commits
mailing list