[vlc-devel] [PATCH] direct3d9: the surface allocated from the pool needs to have the decoder size

Steve Lhomme robux4 at gmail.com
Mon Sep 7 14:40:47 CEST 2015


---
 modules/video_output/msw/direct3d9.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/video_output/msw/direct3d9.c b/modules/video_output/msw/direct3d9.c
index 95ba1ce..2f5d2a9 100644
--- a/modules/video_output/msw/direct3d9.c
+++ b/modules/video_output/msw/direct3d9.c
@@ -298,8 +298,8 @@ static picture_pool_t *Pool(vout_display_t *vd, unsigned count)
             goto error;
 
         HRESULT hr = IDirect3DDevice9_CreateOffscreenPlainSurface(vd->sys->d3ddev,
-                                                          vd->fmt.i_visible_width,
-                                                          vd->fmt.i_visible_height,
+                                                          vd->fmt.i_width,
+                                                          vd->fmt.i_height,
                                                           MAKEFOURCC('N','V','1','2'),
                                                           D3DPOOL_DEFAULT,
                                                           &picsys->surface,
-- 
2.5.0



More information about the vlc-devel mailing list