quartz/filtergraph: Remove redundant checks for pin direction from CheckCircularConnection().

These are already checked in the callers.

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2022-02-02 22:58:08 -06:00 committed by Alexandre Julliard
parent 9942693a85
commit ae9d64ed4c
1 changed files with 0 additions and 10 deletions

View File

@ -782,22 +782,12 @@ static HRESULT CheckCircularConnection(struct filter_graph *This, IPin *out, IPi
hr = IPin_QueryPinInfo(out, &info_out);
if (FAILED(hr))
return hr;
if (info_out.dir != PINDIR_OUTPUT)
{
IBaseFilter_Release(info_out.pFilter);
return VFW_E_CANNOT_CONNECT;
}
hr = IPin_QueryPinInfo(in, &info_in);
if (SUCCEEDED(hr))
IBaseFilter_Release(info_in.pFilter);
if (FAILED(hr))
goto out;
if (info_in.dir != PINDIR_INPUT)
{
hr = VFW_E_CANNOT_CONNECT;
goto out;
}
if (info_out.pFilter == info_in.pFilter)
hr = VFW_E_CIRCULAR_GRAPH;