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

Steve Lhomme git at videolan.org
Thu Sep 27 10:16:31 CEST 2018


vlc/vlc-3.0 | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Sep 26 13:40:51 2018 +0200| [159ef80cd41bbb24fca51044b09fa73f33382a28] | 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=159ef80cd41bbb24fca51044b09fa73f33382a28
---

 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..2f22ad579a 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) != 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