vlc | branch: master | Steve Lhomme <[email protected]> | Tue Jan 22 13:07:40 2019 +0100| [0ee25b922851b899dbca2c69bf60ee5c9a9faba3] | committer: Steve Lhomme
direct3d1: don't use the module in winstore builds if there's no context It only works in windowless mode > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0ee25b922851b899dbca2c69bf60ee5c9a9faba3 --- modules/video_output/win32/direct3d11.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c index ba4687b142..a5f3579ab8 100644 --- a/modules/video_output/win32/direct3d11.c +++ b/modules/video_output/win32/direct3d11.c @@ -423,6 +423,11 @@ static int Open(vout_display_t *vd, const vout_display_cfg_t *cfg, #if VLC_WINSTORE_APP if (d3d11_ctx == NULL) d3d11_ctx = var_InheritInteger(vd, "winrt-d3dcontext"); + if (d3d11_ctx == NULL) + { + msg_Err(vd, "missing direct3d context for winstore"); + goto error; + } #endif if (CommonInit(vd, d3d11_ctx != NULL, cfg)) goto error; _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
