IMFSourceReaderEx::RemoveAllTransformsForStream method (mfreadwrite.h)

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

[in] dwStreamIndex

The stream for which to remove the MFTs. The value can be any of the following.

Value Meaning
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 code Description
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

Requirement Value
Minimum supported client Windows 8 [desktop apps | UWP apps]
Minimum supported server Windows Server 2012 [desktop apps | UWP apps]
Target Platform Windows
Header mfreadwrite.h

See also

IMFSourceReaderEx