Module: wine Branch: master Commit: f6c1548bf87b6f9e7c543908e1eff735d3db62c7 URL: https://gitlab.winehq.org/wine/wine/-/commit/f6c1548bf87b6f9e7c543908e1eff73...
Author: Zebediah Figura zfigura@codeweavers.com Date: Tue Apr 4 13:37:59 2023 -0500
quartz/vmr9: Do not clear the previous allocator and presenter in IVMRFilterConfig9::SetRenderingMode().
There cannot be any previous allocator and presenter. They can only be set by this function, which cannot be called more than once, or by IVMRSurfaceAllocatorNotify9::AdviseSurfaceAllocator(), which can only be called after setting the rendering mode.
---
dlls/quartz/vmr9.c | 8 -------- 1 file changed, 8 deletions(-)
diff --git a/dlls/quartz/vmr9.c b/dlls/quartz/vmr9.c index 2330f8fc0c9..d2840f6fb76 100644 --- a/dlls/quartz/vmr9.c +++ b/dlls/quartz/vmr9.c @@ -1344,14 +1344,6 @@ static HRESULT WINAPI VMR9FilterConfig_SetRenderingMode(IVMRFilterConfig9 *iface return VFW_E_WRONG_STATE; }
- if (This->allocator) - IVMRSurfaceAllocator9_Release(This->allocator); - if (This->presenter) - IVMRImagePresenter9_Release(This->presenter); - - This->allocator = NULL; - This->presenter = NULL; - switch (mode) { case VMR9Mode_Windowed: