Module: wine
Branch: master
Commit: 966bad6aa5736ebf02510bf494edfd0c52825fc2
URL: https://gitlab.winehq.org/wine/wine/-/commit/966bad6aa5736ebf02510bf494edfd…
Author: Zebediah Figura <zfigura(a)codeweavers.com>
Date: Tue Apr 4 13:46:55 2023 -0500
quartz/vmr9: Do not bother setting the cookie when using the default presenter.
We do not use it in this case.
---
dlls/quartz/vmr9.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/dlls/quartz/vmr9.c b/dlls/quartz/vmr9.c
index 7e50748a822..80c2d7bedb9 100644
--- a/dlls/quartz/vmr9.c
+++ b/dlls/quartz/vmr9.c
@@ -1349,8 +1349,6 @@ static HRESULT WINAPI VMR9FilterConfig_SetRenderingMode(IVMRFilterConfig9 *iface
{
case VMR9Mode_Windowed:
case VMR9Mode_Windowless:
- This->cookie = ~0;
-
if (FAILED(hr = default_presenter_create(This, &default_presenter)))
{
ERR("Failed to create default presenter, hr %#lx.\n", hr);
Module: wine
Branch: master
Commit: f6c1548bf87b6f9e7c543908e1eff735d3db62c7
URL: https://gitlab.winehq.org/wine/wine/-/commit/f6c1548bf87b6f9e7c543908e1eff7…
Author: Zebediah Figura <zfigura(a)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: