IMediaSample::GetMediaType

Retrieves the media type of the IMediaSample object.

HRESULT GetMediaType(
AM_MEDIA_TYPE **ppMediaType);

Parameters

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

Return Values

Returns an HRESULT value. 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 CoTaskMemFree function.

 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.