IWMEncDataView::SetMediaFormat
The SetMediaFormat method specifies the format information for a specific input stream. This method is reserved for future use.
Syntax
HRESULT SetMediaFormat(
DWORD dwStreamCookie,
WM_MEDIA_TYPE* pType
);
Parameters
dwStreamCookie
[in] DWORD containing the stream ID.
pType
[in] 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 pointer to the media type is NULL. |
Remarks
The SetMediaFormat method is used internally by the encoding process.
Requirements
Header: wmencvu.h
Library: wmprevu.dll
See Also