quartz: Simplify code flow logic (PVS-Studio).
This commit is contained in:
parent
585f8dfe7e
commit
8a42eb55da
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user