[vlc-commits] direct3d9: the surface allocated from the pool needs to have the decoder size
Steve Lhomme
git at videolan.org
Wed Sep 9 13:58:57 CEST 2015
vlc | branch: master | Steve Lhomme <robux4 at gmail.com> | Mon Sep 7 14:40:47 2015 +0200| [d3bc255c2ea884d2696081603409b8d2f590ee96] | committer: Jean-Baptiste Kempf
direct3d9: the surface allocated from the pool needs to have the decoder size
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d3bc255c2ea884d2696081603409b8d2f590ee96
---
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,
More information about the vlc-commits
mailing list