[vlc-commits] d3d11: assert vd->info not clobbered

Rémi Denis-Courmont git at videolan.org
Thu Dec 20 19:42:59 CET 2018


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Dec 19 22:26:03 2018 +0200| [c3aa4bf5eaaf6299922fa3c981dc55103519caff] | committer: Rémi Denis-Courmont

d3d11: assert vd->info not clobbered

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

 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 fa7f8415bc..539b902b6a 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -379,6 +379,7 @@ static int Open(vout_display_t *vd, const vout_display_cfg_t *cfg,
 
     if (Direct3D11Open(vd, fmtp)) {
         msg_Err(vd, "Direct3D11 could not be opened");
+        assert(!vd->info.is_slow); /* vd->info was not modified */
         goto error;
     }
 



More information about the vlc-commits mailing list