| 995 | // the graph we can send an EC_WINDOW_DESTROYED event |
| 996 | |
| 997 | STDMETHODIMP |
| 998 | CBaseVideoRenderer2::JoinFilterGraph(__inout_opt IFilterGraph *pGraph, __in_opt LPCWSTR pName) |
| 999 | { |
| 1000 | // Since we send EC_ACTIVATE, we also need to ensure |
| 1001 | // we send EC_WINDOW_DESTROYED or the resource manager may be |
| 1002 | // holding us as a focus object |
| 1003 | if (!pGraph && m_pGraph) { |
| 1004 | |
| 1005 | // We were in a graph and now we're not |
| 1006 | // Do this properly in case we are aggregated |
| 1007 | IBaseFilter* pFilter = this; |
| 1008 | NotifyEvent(EC_WINDOW_DESTROYED, (LPARAM) pFilter, 0); |
| 1009 | } |
| 1010 | return CBaseFilter::JoinFilterGraph(pGraph, pName); |
| 1011 | } |
nothing calls this directly
no outgoing calls
no test coverage detected