Export (0) Print
Expand All

CMediaSample.SetPreroll method

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

Amfilter.h (include Streams.h)

Library

Strmbase.lib (retail builds);
Strmbasd.lib (debug builds)

See also

CMediaSample Class

 

 

Community Additions

ADD
Show:
© 2015 Microsoft