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

Method PinMatches

windows/APIExample/APIExample/DirectShow/DShowHelper.cpp:103–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103bool CDShowHelper::PinMatches(IPin *pin, const GUID &type, const GUID &category,
104 PIN_DIRECTION &dir)
105{
106 if (!PinHasMajorType(pin, type))
107 return false;
108 if (!PinIsDirection(pin, dir))
109 return false;
110 if (!PinIsCategory(pin, category))
111 return false;
112
113 return true;
114}
115
116BOOL CDShowHelper::GetFilterPin(IBaseFilter *filter, const GUID &type, const GUID &category,
117 PIN_DIRECTION dir, IPin **pin)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected