Commit 4a441e7b authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

quartz/vmr9: Do not set the mode if we failed to create the default presenter.

parent 966bad6a
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment