MF_SOURCE_READER_FLAG Enumeration

Contains flags that indicate the status of the IMFSourceReader::ReadSample method.

Syntax

typedef enum MF_SOURCE_READER_FLAG
{
    MF_SOURCE_READERF_ERROR = 0x1,
    MF_SOURCE_READERF_ENDOFSTREAM = 0x2,
    MF_SOURCE_READERF_NEWSTREAM = 0x4,
    MF_SOURCE_READERF_NATIVEMEDIATYPECHANGED = 0x10,
    MF_SOURCE_READERF_CURRENTMEDIATYPECHANGED = 0x20,
    MF_SOURCE_READERF_STREAMTICK = 0x100,
    MF_SOURCE_READERF_ALLEFFECTSREMOVED = 0x200
} MF_SOURCE_READER_FLAG;  

Constants

Constant Description
MF_SOURCE_READERF_ERRORAn error occurred. If you receive this flag, do not make any further calls to IMFSourceReader methods.
MF_SOURCE_READERF_ENDOFSTREAMThe source reader reached the end of the stream.
MF_SOURCE_READERF_NEWSTREAMOne or more new streams were created. Respond to this flag by doing at least one of the following:
  • Set the output types on the new streams.
  • Update the stream selection by selecting or deselecting streams.
MF_SOURCE_READERF_NATIVEMEDIATYPECHANGEDThe native format has changed for one or more streams. The native format is the format delivered by the media source before any decoders are inserted.
MF_SOURCE_READERF_CURRENTMEDIATYPECHANGEDThe current media has type changed for one or more streams. To get the current media type, call the IMFSourceReader::GetCurrentMediaType method.
MF_SOURCE_READERF_STREAMTICKThere is a gap in the stream. This flag corresponds to an MEStreamTick event from the media source.
MF_SOURCE_READERF_ALLEFFECTSREMOVEDAll transforms inserted by the application have been removed for a particular stream. This could be due to a dynamic format change from a source or decoder that prevents custom transforms from being used because they cannot handle the new media type.

Requirements

Header: Declared in mfreadwrite.h.