Zebediah Figura : quartz/vmr9: Request only one surface.

Alexandre Julliard julliard at winehq.org
Fri Mar 20 17:08:20 CDT 2020


Module: wine
Branch: master
Commit: 01f83593ed7def0d8d8e69239582fdbc9cd23c52
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=01f83593ed7def0d8d8e69239582fdbc9cd23c52

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Thu Mar 19 18:50:52 2020 -0500

quartz/vmr9: Request only one surface.

How to Survive gets confused when we ask for more than one surface.

Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/quartz/vmr9.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/quartz/vmr9.c b/dlls/quartz/vmr9.c
index 35d625ddd7..ab471b9042 100644
--- a/dlls/quartz/vmr9.c
+++ b/dlls/quartz/vmr9.c
@@ -351,7 +351,7 @@ static HRESULT WINAPI VMR9_CheckMediaType(struct strmbase_renderer *iface, const
 
 static HRESULT initialize_device(struct quartz_vmr *filter, VMR9AllocationInfo *info)
 {
-    DWORD buffer_count = 2;
+    DWORD buffer_count = 1;
     HRESULT hr;
 
     if (FAILED(hr = IVMRSurfaceAllocatorEx9_InitializeDevice(filter->allocator,
@@ -407,7 +407,7 @@ static HRESULT VMR9_maybe_init(struct quartz_vmr *filter, BOOL force, const AM_M
     info.dwWidth = filter->source_rect.right;
     info.dwHeight = filter->source_rect.bottom;
     info.Pool = D3DPOOL_DEFAULT;
-    info.MinBuffers = 2;
+    info.MinBuffers = 1;
     info.szAspectRatio.cx = info.dwWidth;
     info.szAspectRatio.cy = info.dwHeight;
     info.szNativeSize.cx = filter->bmiheader.biWidth;




More information about the wine-cvs mailing list