[PATCH 3/6] quartz/vmr9: Request only one surface.

Zebediah Figura z.figura12 at gmail.com
Wed Mar 18 19:55:32 CDT 2020


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

Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
---
 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 5da79442e17..c2cd8fbf260 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,
@@ -406,7 +406,7 @@ static HRESULT VMR9_maybe_init(struct quartz_vmr *This, BOOL force, const AM_MED
     info.dwWidth = This->source_rect.right;
     info.dwHeight = This->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 = This->bmiheader.biWidth;
-- 
2.25.1




More information about the wine-devel mailing list