CMediaSample::SetMediaType (Windows Embedded CE 6.0)
1/6/2010
Sets the media type for the CMediaSample object.
Syntax
HRESULT SetMediaType(
AM_MEDIA_TYPE* pMediaType
);
Parameters
- pMediaType
Pointer to a pointer to a media type structure to be set.
Return Value
Returns an HRESULT value.
Remarks
This member function implements the IMediaSample::SetMediaType method.
It deletes the previous media type if one exists, makes a copy of the media type passed in, sets m_pMediaType to the copy of the media type, and sets the value of the m_dwFlags Sample_TypeChanged flag to TRUE.
Requirements
Windows Embedded CE | Windows CE 2.12 and later |
Note | Microsoft DirectShow applications and DirectShow filters have different include file and Library requirements For more information, see Setting Up the Build Environment, Version 2.12 requires DXPAK 1.0 or later |