Microsoft DirectX 8.1 (C++)

MoFreeMediaType

Requirements

Declared in Dmort.h; include Dmo.h. Link to Msdmo.lib.

The MoFreeMediaType function frees the allocated members of a media type structure.

Syntax

HRESULT MoFreeMediaType(
    DMO_MEDIA_TYPE *pmt
);

Parameters

pmt

Pointer to an initialized DMO_MEDIA_TYPE structure.

Return Value

Returns an HRESULT value. Possible values include the following.

Result Code Description
E_POINTER NULL pointer argument
S_OK Success

Remarks

This function frees the format block pointed to by the pbFormat member of the DMO_MEDIA_TYPE structure.

See Also