Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
e33e383f by Alexandre Janniaux at 2025-03-01T13:29:25+00:00
direct3d11: check the window accordingly
If the display is opened on a window that is not matching with a
DirectComposition backend or HWND backend, the module should not even
try to open.
- - - - -
1 changed file:
- modules/video_output/win32/direct3d11.cpp
Changes:
=====================================
modules/video_output/win32/direct3d11.cpp
=====================================
@@ -532,6 +532,10 @@ static const auto ops = []{
static int Open(vout_display_t *vd,
video_format_t *fmtp, vlc_video_context *context)
{
+ if (vd->cfg->window->type != VLC_WINDOW_TYPE_HWND &&
+ vd->cfg->window->type != VLC_WINDOW_TYPE_DCOMP)
+ return VLC_ENOTSUP;
+
vout_display_sys_t *sys = new (std::nothrow) vout_display_sys_t();
if (!sys)
return VLC_ENOMEM;
View it on GitLab:
https://code.videolan.org/videolan/vlc/-/commit/e33e383fde533c17032614bd0cbf5be1d364917a
--
View it on GitLab:
https://code.videolan.org/videolan/vlc/-/commit/e33e383fde533c17032614bd0cbf5be1d364917a
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits