[vlc-commits] d3d11_deinterlace: add missing D3D11 DLL use

Steve Lhomme git at videolan.org
Wed Sep 26 14:17:43 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Sep 26 13:40:51 2018 +0200| [eca88bc672ce3fbe80c818a9ddb5c51f6faea8a7] | committer: Steve Lhomme

d3d11_deinterlace: add missing D3D11 DLL use

in case the vout is deleted before the filter

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=eca88bc672ce3fbe80c818a9ddb5c51f6faea8a7
---

 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 a96da69421..21bc53f8a0 100644
--- a/modules/hw/d3d11/d3d11_deinterlace.c
+++ b/modules/hw/d3d11/d3d11_deinterlace.c
@@ -325,6 +325,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