Commit 8a42eb55 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

quartz: Simplify code flow logic (PVS-Studio).

parent 585f8dfe
...@@ -476,14 +476,12 @@ static HRESULT WINAPI VMR9_ShouldDrawSampleNow(BaseRenderer *This, IMediaSample ...@@ -476,14 +476,12 @@ static HRESULT WINAPI VMR9_ShouldDrawSampleNow(BaseRenderer *This, IMediaSample
static HRESULT WINAPI VMR9_CompleteConnect(BaseRenderer *This, IPin *pReceivePin) static HRESULT WINAPI VMR9_CompleteConnect(BaseRenderer *This, IPin *pReceivePin)
{ {
struct quartz_vmr *pVMR9 = (struct quartz_vmr*)This; struct quartz_vmr *pVMR9 = (struct quartz_vmr*)This;
HRESULT hr = S_OK; HRESULT hr;
TRACE("(%p)\n", This); TRACE("(%p)\n", This);
if (!pVMR9->mode && SUCCEEDED(hr)) if (pVMR9->mode ||
hr = IVMRFilterConfig9_SetRenderingMode(&pVMR9->IVMRFilterConfig9_iface, VMR9Mode_Windowed); SUCCEEDED(hr = IVMRFilterConfig9_SetRenderingMode(&pVMR9->IVMRFilterConfig9_iface, VMR9Mode_Windowed)))
if (SUCCEEDED(hr))
hr = VMR9_maybe_init(pVMR9, FALSE); hr = VMR9_maybe_init(pVMR9, FALSE);
return hr; return hr;
......
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