IMFSourceReaderEx::RemoveAllTransformsForStream method

Removes all of the Media Foundation transforms (MFTs) for a specified stream, with the exception of the decoder.

Syntax


HRESULT RemoveAllTransformsForStream(
  [in]  DWORD dwStreamIndex
);

Parameters

dwStreamIndex [in]

The stream for which to remove the MFTs. 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.

 

Return value

This method can return one of these values.

Return codeDescription
S_OK

Success.

MF_E_INVALIDREQUEST

Invalid request.

MF_E_INVALIDSTREAMNUMBER

The dwStreamIndex parameter is invalid.

 

Remarks

Calling this method can reset the current output type for the stream. To get the new output type, call IMFSourceReader::GetCurrentMediaType.

In asynchronous mode, this method fails if a sample request is pending. In that case, wait for the OnReadSample callback to be invoked before calling the method. For more information about using the Source Reader in asynchronous mode, see IMFSourceReader::ReadSample.

Requirements

Minimum supported client

Windows 8 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 [desktop apps | Windows Store apps]

Header

Mfreadwrite.h

See also

IMFSourceReaderEx

 

 

Community Additions

ADD
Show:
© 2014 Microsoft