Microsoft DirectX 9.0

CBaseVideoRenderer::ShouldDrawSampleNow

The ShouldDrawSampleNow method determines if the video should be drawn without setting a timer advise link with the clock.

Syntax

virtual HRESULT ShouldDrawSampleNow(
    IMediaSample *pMediaSample,
    REFERENCE_TIME *ptrStart,
    REFERENCE_TIME *ptrEnd
);

Parameters

pMediaSample

Pointer to the IMediaSample interface for the sample.

ptrStart

Pointer to the time to begin rendering.

ptrEnd

Pointer to the time to stop rendering.

Return Value

Returns an HRESULT value. Returns S_OK to mean draw at once without waiting, S_FALSE to mean draw at time ptrStart, or an error to mean do not draw the sample; that is, skip it to save time.

Remarks

This member function overrides CBaseRenderer::ShouldDrawSampleNow.

See Also