Share via


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                     = 0x00000001,
  MF_SOURCE_READERF_ENDOFSTREAM               = 0x00000002,
  MF_SOURCE_READERF_NEWSTREAM                 = 0x00000004,
  MF_SOURCE_READERF_NATIVEMEDIATYPECHANGED    = 0x00000010,
  MF_SOURCE_READERF_CURRENTMEDIATYPECHANGED   = 0x00000020,
  MF_SOURCE_READERF_STREAMTICK                = 0x00000100 
} MF_SOURCE_READER_FLAG;

Konstanten

  • 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:

    • Set the output types on the new streams.
    • Update the stream selection by selecting or deselecting streams.
  • 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.

Anforderungen

Mindestens unterstützter Client

Windows 7

Mindestens unterstützter Server

Windows Server 2008 R2

Header

Mfreadwrite.h

Siehe auch

Media Foundation Enumerations

IMFSourceReader