Condividi tramite


CMediaSample::SetPreroll

 
Microsoft DirectShow 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.

Requirements

**  Header:** Declared in Amfilter.h; include Streams.h.

**  Library:** Use Strmbase.lib (retail builds) or Strmbasd.lib (debug builds).

See Also