IWMEncDataView::GetMediaFormat
The GetMediaFormat method retrieves format information for a specific input stream.
Syntax
HRESULT GetMediaFormat(
DWORD dwStreamCookie,
WM_MEDIA_TYPE** ppType
);
Parameters
dwStreamCookie
[in] DWORD containing the stream ID.
ppType
[out] Pointer to a pointer to a WM_MEDIA_TYPE structure identifying the stream format.
Return Values
If the method succeeds, it returns S_OK. If it fails, it supports the IErrorInfo interface and returns an HRESULT error code.
Return code | Number | Description |
E_POINTER | 0x80004003 | The indirect pointer to the media type is NULL. |
Remarks
The GetMediaFormat method is used internally to identify the media type of the input samples.
Requirements
Header: wmencvu.h
Library: wmprevu.dll
See Also