CMediaSample::SetMediaType (Windows CE 5.0)

Send Feedback

Sets the media type for the CMediaSample object.

HRESULT SetMediaType(AM_MEDIA_TYPE* pMediaType);

Parameters

  • pMediaType
    Pointer to a pointer to a media type structure to be set.

Return Values

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

DirectShow applications and DirectShow filters have different include file and link library requirements.

For more information, see Setting Up the Build Environment.

OS Versions: Windows CE 2.12 and later. Version 2.12 requires DXPAK 1.0 or later.
Header:

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.