Microsoft DirectX 9.0

CMediaSample::SetPreroll

The SetPreroll method specifies whether this sample is a preroll sample. A preroll sample should not be displayed. This method implements the IMediaSample::SetPreroll method.

Syntax

HRESULT SetPreroll(
    BOOL bIsPreroll
);

Parameters

bIsPreroll

Boolean value that specifies whether this is a preroll sample. If TRUE, this is a preroll sample.

Return Value

Returns S_OK.

Remarks

This method updates the CMediaSample::m_dwFlags member variable, which specifies the preroll property.

See Also