Module: wine
Branch: master
Commit: 5f602b46f3cd70f68d6666ca4b0a1b43fca3e0e3
URL: https://source.winehq.org/git/wine.git/?a=commit;h=5f602b46f3cd70f68d6666ca…
Author: Zebediah Figura <z.figura12(a)gmail.com>
Date: Mon May 11 11:03:08 2020 -0500
quartz: Set VMR9AllocationInfo dimension members to the video dimensions.
These will be identical to the source rect at connection time, but not
necessarily if we ever need to recreate the surfaces (due to a lost device, for
example), and we still want to use the source image dimensions in that case.
Signed-off-by: Zebediah Figura <z.figura12(a)gmail.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
dlls/quartz/vmr9.c | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/dlls/quartz/vmr9.c b/dlls/quartz/vmr9.c
index 758ede6155..29be5aaa81 100644
--- a/dlls/quartz/vmr9.c
+++ b/dlls/quartz/vmr9.c
@@ -409,14 +409,10 @@ static HRESULT allocate_surfaces(struct quartz_vmr *filter, const AM_MEDIA_TYPE
if (filter->mode == VMR9Mode_Windowless && !filter->hWndClippingWindow)
return S_OK;
- info.dwWidth = filter->window.src.right;
- info.dwHeight = filter->window.src.bottom;
info.Pool = D3DPOOL_DEFAULT;
info.MinBuffers = 1;
- info.szAspectRatio.cx = info.dwWidth;
- info.szAspectRatio.cy = info.dwHeight;
- info.szNativeSize.cx = filter->bmiheader.biWidth;
- info.szNativeSize.cy = filter->bmiheader.biHeight;
+ info.dwWidth = info.szAspectRatio.cx = info.szNativeSize.cx = filter->bmiheader.biWidth;
+ info.dwHeight = info.szAspectRatio.cy = info.szNativeSize.cy = filter->bmiheader.biHeight;
filter->cur_surface = 0;