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.
| Microsoft DirectShow 9.0 |
IAMMediaTypeStream::SetFormat
- Note This interface is deprecated. New applications should not use it.
The SetFormat method sets the format of the stream.
Syntax
HRESULT SetFormat( AM_MEDIA_TYPE *pMediaType, DWORD dwFlags );
Parameters
pMediaType
[in] Pointer to an AM_MEDIA_TYPE structure that contains the stream format.
dwFlags
[in] Reserved.
Return Values
Returns one of the following values.
| Return code | Description |
| MS_E_SAMPLEALLOC | The stream has already allocated a sample with another media type. |
| S_OK | Success. |
See Also