Commit 952f1945 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

qcap: Use pin_matches() directly in find_unconnected_source_from_pin().

parent 74014b55
......@@ -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)))
{
......
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