IMediaObject::GetOutputCurrentType (Windows Embedded CE 6.0)
1/6/2010
This method retrieves the media type that was set for an output stream, if any.
Syntax
HRESULT GetOutputCurrentType(
DWORD dwOutputStreamIndex,
DMO_MEDIA_TYPE* pmt
);
Parameters
- dwOutputStreamIndex
Zero-based index of an output stream on the DMO.
- pmt
[out] Pointer to a DMO_MEDIA_TYPE structure allocated by the caller. The method fills the structure with the media type.
Return Value
Returns an HRESULT value. Possible values include the following.
Value | Description |
---|---|
S_OK |
Success |
Invalid stream index |
|
Media type was not set |
|
E_OUTOFMEMORY |
Insufficient memory |
Remarks
The caller must set the media type for the stream before calling this method. To set the media type, call the IMediaObject::SetOutputType method.
If the method succeeds, call MoFreeMediaType to free the format block.
Requirements
Header | dmo.h |
Library | Dmoguid.lib |
Windows Embedded CE | Windows CE .NET 4.1 and later |
See Also
Reference
IMediaObject
IMediaObject::SetOutputType
MoFreeMediaType
DMO Error Codes
DMO Error Codes
DMO_MEDIA_TYPE