[vlc-devel] [PATCH 1/8] direct3d11: allow a NULL select_plane callback
Steve Lhomme
robux4 at ycbcr.xyz
Wed Mar 31 06:25:21 UTC 2021
The documentation already allowed it.
---
modules/video_output/win32/direct3d11.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index 3fc2fd1c9d7..22e4b2a155e 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -474,6 +474,8 @@ static int Control(vout_display_t *vd, int query)
static bool SelectRenderPlane(void *opaque, size_t plane)
{
vout_display_sys_t *sys = opaque;
+ if (!sys->selectPlaneCb)
+ return plane == 0; // we only support one packed RGBA plane by default
return sys->selectPlaneCb(sys->outside_opaque, plane);
}
--
2.29.2
More information about the vlc-devel
mailing list