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

Method NotifyEvent

common/baseclasses/amfilter.cpp:811–829  ·  view source on GitHub ↗

send an event notification to the filter graph if we know about it. returns S_OK if delivered, S_FALSE if the filter graph does not sink events, or an error otherwise.

Source from the content-addressed store, hash-verified

809// returns S_OK if delivered, S_FALSE if the filter graph does not sink
810// events, or an error otherwise.
811HRESULT
812CBaseFilter::NotifyEvent(long EventCode, LONG_PTR EventParam1, LONG_PTR EventParam2)
813{
814 // Snapshot so we don't have to lock up
815 IMediaEventSink *pSink = m_pSink;
816 if (pSink)
817 {
818 if (EC_COMPLETE == EventCode)
819 {
820 EventParam2 = (LONG_PTR)(IBaseFilter *)this;
821 }
822
823 return pSink->Notify(EventCode, EventParam1, EventParam2);
824 }
825 else
826 {
827 return E_NOTIMPL;
828 }
829}
830
831// Request reconnect
832// pPin is the pin to reconnect

Callers 6

PreparePaletteMethod · 0.80
ReceiveMethod · 0.80
OnVideoSizeChangeMethod · 0.80
DoCompleteHandlingMethod · 0.80
ReceiveMethod · 0.80

Calls 1

NotifyMethod · 0.45

Tested by

no test coverage detected