[vlc-commits] direct3d11: allow a NULL select_plane callback

Steve Lhomme git at videolan.org
Fri Apr 2 13:55:49 UTC 2021


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Feb  2 11:11:28 2021 +0100| [6e43ea756a179f39f0c72852c19a1b0e3b0e21de] | committer: Steve Lhomme

direct3d11: allow a NULL select_plane callback

The documentation already allowed it.

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

 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 3fc2fd1c9d..22e4b2a155 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);
 }
 



More information about the vlc-commits mailing list