qcap: Use pin_matches() directly in find_unconnected_source_from_pin().
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
74014b5539
commit
952f194539
|
@ -511,12 +511,17 @@ static HRESULT find_unconnected_source_from_pin(CaptureGraphImpl *capture_graph,
|
|||
|
||||
if (category && (IsEqualGUID(category, &PIN_CATEGORY_CAPTURE)
|
||||
|| IsEqualGUID(category, &PIN_CATEGORY_PREVIEW)))
|
||||
hr = match_smart_tee_pin(capture_graph, category, majortype, (IUnknown *)pin, &pin);
|
||||
{
|
||||
if (FAILED(hr = match_smart_tee_pin(capture_graph, category, majortype, (IUnknown *)pin, &pin)))
|
||||
return hr;
|
||||
}
|
||||
else if (pin_matches(pin, PINDIR_OUTPUT, category, majortype, FALSE))
|
||||
{
|
||||
IPin_AddRef(pin);
|
||||
hr = S_OK;
|
||||
}
|
||||
else
|
||||
hr = ICaptureGraphBuilder2_FindPin(&capture_graph->ICaptureGraphBuilder2_iface,
|
||||
(IUnknown *)pin, PINDIR_OUTPUT, category, majortype, FALSE, -1, &pin);
|
||||
if (FAILED(hr))
|
||||
return hr;
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(IPin_ConnectedTo(pin, &peer)))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue