[vlc-commits] d3d11_surface: fix missing local d3d11_device_t

Steve Lhomme git at videolan.org
Mon Mar 16 11:07:40 CET 2020


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Mar 16 10:48:14 2020 +0100| [03208617c5c8736adb07579bc7b653673c1bffa0] | committer: Steve Lhomme

d3d11_surface: fix missing local d3d11_device_t

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

 modules/hw/d3d11/d3d11_surface.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/hw/d3d11/d3d11_surface.c b/modules/hw/d3d11/d3d11_surface.c
index 6534d309df..215bec8b5f 100644
--- a/modules/hw/d3d11/d3d11_surface.c
+++ b/modules/hw/d3d11/d3d11_surface.c
@@ -713,6 +713,8 @@ int D3D11OpenConverter( vlc_object_t *obj )
         return VLC_ENOMEM;
 
     d3d11_video_context_t *vctx_sys = GetD3D11ContextPrivate(p_filter->vctx_in);
+    d3d11_decoder_device_t *dev_sys = GetD3D11OpaqueContext(p_filter->vctx_in);
+    p_sys->d3d_dev = &dev_sys->d3d_dev;
 
     if (assert_staging(p_filter, p_sys, vctx_sys->format) != VLC_SUCCESS)
     {
@@ -772,6 +774,7 @@ int D3D11OpenCPUConverter( vlc_object_t *obj )
         vlc_decoder_device_Release(dec_device);
         return VLC_ENOMEM;
     }
+    p_sys->d3d_dev = &devsys->d3d_dev;
 
     DXGI_FORMAT vctx_fmt;
     switch( p_filter->fmt_in.video.i_chroma ) {



More information about the vlc-commits mailing list