[vlc-devel] [PATCH 4/9] direct3d9: handle external callbacks to render into an external surface
Steve Lhomme
robux4 at ycbcr.xyz
Fri Jan 18 14:59:00 CET 2019
Instead of the device backbuffer.
---
modules/video_output/win32/direct3d9.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/modules/video_output/win32/direct3d9.c b/modules/video_output/win32/direct3d9.c
index 6e3bcb799e..1e26a11707 100644
--- a/modules/video_output/win32/direct3d9.c
+++ b/modules/video_output/win32/direct3d9.c
@@ -1657,6 +1657,12 @@ static int Open(vout_display_t *vd, const vout_display_cfg_t *cfg,
return VLC_EGENERIC;
}
+ sys->outside_opaque = var_InheritAddress(vd, "vout-cb-opaque");
+ sys->swapCb = var_InheritAddress(vd, "vout-cb-swap");
+ sys->starRenderCb = var_InheritAddress(vd, "vout-cb-start-render");
+ sys->endRenderCb = var_InheritAddress(vd, "vout-cb-end-render");
+ sys->resizeCb = var_InheritAddress(vd, "vout-cb-update-output");
+
if (!sys->swapCb || !sys->starRenderCb || !sys->endRenderCb)
{
/* use our own callbacks, since there isn't any external ones */
--
2.17.1
More information about the vlc-devel
mailing list