[vlc-devel] [PATCH 5/5] direct3d9: make the display pool expandable

Steve Lhomme robux4 at ycbcr.xyz
Wed Dec 5 09:59:06 CET 2018


There is no reason to use a fixed size and later we can reduce the default
amount.
---
 modules/video_output/win32/direct3d9.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/video_output/win32/direct3d9.c b/modules/video_output/win32/direct3d9.c
index caad663846..c2b2ce69c3 100644
--- a/modules/video_output/win32/direct3d9.c
+++ b/modules/video_output/win32/direct3d9.c
@@ -340,6 +340,9 @@ static picture_pool_t *Direct3D9CreatePicturePool(struct vout_pool_context *pctx
         pool_cfg.lock = Direct3D9LockSurface;
         pool_cfg.unlock = Direct3D9UnlockSurface;
     }
+    pool_cfg.expand_fmt = fmt;
+    pool_cfg.expand_cb  = NewPoolPicture;
+    pool_cfg.expand_ctx = pctx;
 
     pool = picture_pool_NewExtended( &pool_cfg );
 
-- 
2.17.1



More information about the vlc-devel mailing list