MCPcopy Create free account
hub / github.com/AgoraIO/API-Examples / PinNameIs

Method PinNameIs

windows/APIExample/APIExample/DirectShow/DShowHelper.cpp:139–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137}
138
139bool CDShowHelper::PinNameIs(IPin *pin, const wchar_t *name)
140{
141 if (!pin) return false;
142 if (!name) return true;
143
144 PIN_INFO pinInfo;
145
146 if (FAILED(pin->QueryPinInfo(&pinInfo)))
147 return false;
148
149 if (pinInfo.pFilter)
150 pinInfo.pFilter->Release();
151
152 return wcscmp(name, pinInfo.achName) == 0;
153}
154
155bool CDShowHelper::GetPinByName(IBaseFilter *filter, PIN_DIRECTION dir, const wchar_t *name,
156 IPin **pin)

Callers

nothing calls this directly

Calls 2

QueryPinInfoMethod · 0.80
ReleaseMethod · 0.45

Tested by

no test coverage detected