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

Method SendNotifyWindow

common/baseclasses/renbase.cpp:1486–1498  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1484// Pass the window handle to the upstream filter
1485
1486void CBaseRenderer::SendNotifyWindow(IPin *pPin, HWND hwnd)
1487{
1488 IMediaEventSink *pSink;
1489
1490 // Does the pin support IMediaEventSink
1491 HRESULT hr = pPin->QueryInterface(IID_IMediaEventSink, (void **)&pSink);
1492 if (SUCCEEDED(hr))
1493 {
1494 pSink->Notify(EC_NOTIFY_WINDOW, LONG_PTR(hwnd), 0);
1495 pSink->Release();
1496 }
1497 NotifyEvent(EC_NOTIFY_WINDOW, LONG_PTR(hwnd), 0);
1498}
1499
1500// Signal an EC_REPAINT to the filter graph. This can be used to have data
1501// sent to us. For example when a video window is first displayed it may

Callers

nothing calls this directly

Calls 4

SUCCEEDEDFunction · 0.85
QueryInterfaceMethod · 0.45
NotifyMethod · 0.45
ReleaseMethod · 0.45

Tested by

no test coverage detected