MCPcopy Create free account
hub / github.com/Nevcairiel/LAVFilters / ReconnectPin

Method ReconnectPin

common/baseclasses/amfilter.cpp:835–857  ·  view source on GitHub ↗

Request reconnect pPin is the pin to reconnect pmt is the type to reconnect with - can be NULL Calls ReconnectEx on the filter graph

Source from the content-addressed store, hash-verified

833// pmt is the type to reconnect with - can be NULL
834// Calls ReconnectEx on the filter graph
835HRESULT
836CBaseFilter::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

Callers

nothing calls this directly

Calls 3

SUCCEEDEDFunction · 0.85
QueryInterfaceMethod · 0.45
ReleaseMethod · 0.45

Tested by

no test coverage detected