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.
Return value
This method can return one of these values.
Return code | Description |
---|---|
|
Success. |
|
Invalid request. |
|
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 |