From: Zebediah Figura zfigura@codeweavers.com
--- dlls/quartz/vmr9.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/dlls/quartz/vmr9.c b/dlls/quartz/vmr9.c index 80c2d7bedb9..8eee6587182 100644 --- a/dlls/quartz/vmr9.c +++ b/dlls/quartz/vmr9.c @@ -1352,13 +1352,14 @@ static HRESULT WINAPI VMR9FilterConfig_SetRenderingMode(IVMRFilterConfig9 *iface if (FAILED(hr = default_presenter_create(This, &default_presenter))) { ERR("Failed to create default presenter, hr %#lx.\n", hr); - break; + LeaveCriticalSection(&This->renderer.filter.filter_cs); + return hr; } This->allocator = &default_presenter->IVMRSurfaceAllocator9_iface; This->presenter = &default_presenter->IVMRImagePresenter9_iface; IVMRImagePresenter9_AddRef(This->presenter);
- hr = IVMRSurfaceAllocator9_AdviseNotify(This->allocator, &This->IVMRSurfaceAllocatorNotify9_iface); + IVMRSurfaceAllocator9_AdviseNotify(This->allocator, &This->IVMRSurfaceAllocatorNotify9_iface); break; case VMR9Mode_Renderless: break;