Request reconnect pPin is the pin to reconnect pmt is the type to reconnect with - can be NULL Calls ReconnectEx on the filter graph
| 833 | // pmt is the type to reconnect with - can be NULL |
| 834 | // Calls ReconnectEx on the filter graph |
| 835 | HRESULT |
| 836 | CBaseFilter::ReconnectPin(IPin *pPin, __in_opt AM_MEDIA_TYPE const *pmt) |
| 837 | { |
| 838 | IFilterGraph2 *pGraph2; |
| 839 | if (m_pGraph != NULL) |
| 840 | { |
| 841 | HRESULT hr = m_pGraph->QueryInterface(IID_IFilterGraph2, (void **)&pGraph2); |
| 842 | if (SUCCEEDED(hr)) |
| 843 | { |
| 844 | hr = pGraph2->ReconnectEx(pPin, pmt); |
| 845 | pGraph2->Release(); |
| 846 | return hr; |
| 847 | } |
| 848 | else |
| 849 | { |
| 850 | return m_pGraph->Reconnect(pPin); |
| 851 | } |
| 852 | } |
| 853 | else |
| 854 | { |
| 855 | return E_NOINTERFACE; |
| 856 | } |
| 857 | } |
| 858 | |
| 859 | /* This is the same idea as the media type version does for type enumeration |
| 860 | on pins but for the list of pins available. So if the list of pins you |
nothing calls this directly
no test coverage detected