[vlc-commits] direct3d11: make sur we have a picture->context with D3D11 opaque input

Steve Lhomme git at videolan.org
Wed Jun 14 16:36:29 CEST 2017


vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Wed Jun 14 15:48:47 2017 +0200| [2ba574ed51d4f7f35486d1a7c4129375f141ba9e] | committer: Hugo Beauzée-Luyssen

direct3d11: make sur we have a picture->context with D3D11 opaque input

CID #1444697

Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

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

 modules/video_output/win32/direct3d11.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index ac46df2631..777bdd0710 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -1147,6 +1147,7 @@ static void Prepare(vout_display_t *vd, picture_t *picture, subpicture_t *subpic
     else
     {
         /* copy pixels from the context texture to the picture_sys texture */
+        assert(pic_ctx!=NULL);
         D3D11_TEXTURE2D_DESC texDesc;
         ID3D11Texture2D_GetDesc(p_sys->texture[0], &texDesc);
         if (texDesc.BindFlags & D3D11_BIND_SHADER_RESOURCE)



More information about the vlc-commits mailing list