Contains flags that indicate the status of the IMFSourceReader::ReadSample method.
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;
| Constant | Description |
|---|---|
| MF_SOURCE_READERF_ERROR | An error occurred. If you receive this flag, do not make any further calls to IMFSourceReader methods. |
| MF_SOURCE_READERF_ENDOFSTREAM | The source reader reached the end of the stream. |
| MF_SOURCE_READERF_NEWSTREAM | One or more new streams were created. Respond to this flag by doing at least one of the following:
|
| MF_SOURCE_READERF_NATIVEMEDIATYPECHANGED | The 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_CURRENTMEDIATYPECHANGED | The current media has type changed for one or more streams. To get the current media type, call the IMFSourceReader::GetCurrentMediaType method. |
| MF_SOURCE_READERF_STREAMTICK | There is a gap in the stream. This flag corresponds to an MEStreamTick event from the media source. |
| MF_SOURCE_READERF_ALLEFFECTSREMOVED | All 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. |
Header: Declared in mfreadwrite.h.