IMFSourceReader::GetStreamSelection method

Queries whether a stream is selected.

Syntax


HRESULT GetStreamSelection(
  [in]  DWORD dwStreamIndex,
  [out] BOOL  *pfSelected
);

Parameters

dwStreamIndex [in]

The stream to query. The value can be any of the following.

ValueMeaning
0–0xFFFFFFFB

The zero-based index of a stream.

MF_SOURCE_READER_FIRST_VIDEO_STREAM
0xFFFFFFFC

The first video stream.

MF_SOURCE_READER_FIRST_AUDIO_STREAM
0xFFFFFFFD

The first audio stream.

 

pfSelected [out]

Receives TRUE if the stream is selected and will generate data. Receives FALSE if the stream is not selected and will not generate data.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

This interface is available on Windows Vista if Platform Update Supplement for Windows Vista is installed.

Requirements

Minimum supported client

Windows 7, Windows Vista and Platform Update Supplement for Windows Vista [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 R2 [desktop apps | Windows Store apps]

Header

Mfreadwrite.h

See also

Source Reader
IMFSourceReader

 

 

Show: