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.
| 809 | // returns S_OK if delivered, S_FALSE if the filter graph does not sink |
| 810 | // events, or an error otherwise. |
| 811 | HRESULT |
| 812 | CBaseFilter::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 |
no test coverage detected