| 137 | } |
| 138 | |
| 139 | bool 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 | |
| 155 | bool CDShowHelper::GetPinByName(IBaseFilter *filter, PIN_DIRECTION dir, const wchar_t *name, |
| 156 | IPin **pin) |
nothing calls this directly
no test coverage detected