Microsoft Windows CE 3.0  

IMediaSample::GetMediaType

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Retrieves the media type of the IMediaSampleobject.

HRESULT GetMediaType(
AM_MEDIA_TYPE **
ppMediaType
);

Parameters

ppMediaType
[in] Pointer to a pointer to the retrieved media type.

Return Values

Returns an HRESULTvalue. When a sample is received and there is no format change, this method returns S_FALSE.

Remarks

This method allows for limited in-band format changes. Free the format block with FreeMediaType, and then free the entire media type with the Microsoft Win32 CoTaskMemFreefunction.