Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The GetOutputCurrentType method gets the current media type for an output stream on this Media Foundation transform (MFT).
Syntax
HRESULT GetOutputCurrentType(
[in] DWORD dwOutputStreamID,
[out] IMFMediaType **pMediaType
);
Parameters
[in] dwOutputStreamID
Output stream identifier. To get the list of stream identifiers, call IMFDeviceTransform::GetStreamIDs.
[out] pMediaType
Receives a pointer to the IMFMediaType interface that represents the current type used by that stream.
Return value
The method returns an HRESULT. Possible values include but not limited to values given in the following table.
Return code | Description |
---|---|
|
Initialization succeeded |
|
Device MFT could not support the request at this time. |
|
The stream ID is not valid. |
|
There is no media type available with the specified index. |
|
No media type has been set yet. |
Remarks
If the specified output stream does not yet have a media type, the method returns MF_E_TRANSFORM_TYPE_NOT_SET.
Implementation notes
The MFT should return a clone of the media type, not a pointer to the original type. Otherwise, the caller might modify the type and alter the internal state of the MFT.Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 10, version 1703 |
Target Platform | Windows |
Header | mftransform.h |