CBaseRenderer.SendRepaint method
[The feature associated with this page, DirectShow, is a legacy feature. It has been superseded by MediaPlayer, IMFMediaEngine, and Audio/Video Capture in Media Foundation. Those features have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer, IMFMediaEngine and Audio/Video Capture in Media Foundation instead of DirectShow, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]
The SendRepaint
method sends a repaint event to the filter graph manager.
Syntax
void SendRepaint();
Parameters
This method has no parameters.
Return value
This method does not return a value.
Remarks
This method sends an EC_REPAINT event to the filter graph manager if the following conditions are true:
- The input pin is connected.
- The filter is not flushing data.
- The end-of-stream was not reached.
- The CBaseRenderer::m_bAbort flag is FALSE.
- The CBaseRenderer::m_bRepaintStatus flag is TRUE.
Depending on the state of the graph, the EC_REPAINT event can cause the upstream filter to re-send a sample; the filter graph to seek to its current location; or the filter graph manager to pause momentarily. (See EC_REPAINT.) This event is potentially inefficient, so it should be used sparingly. However, video renderers sometimes need to refresh the display.
Requirements
Requirement | Value |
---|---|
Header |
|
Library |
|