MFUnwrapMediaType

Retrieves a media type that was wrapped in another media type by the MFWrapMediaType function.

Syntax

HRESULT MFUnwrapMediaType(
         IMFMediaType *pWrap,
         IMFMediaType **ppOrig
)  

Parameters

pWrap
Type: IMFMediaType *

[in] Pointer to the IMFMediaType interface of the media type that was retrieved by MFWrapMediaType.

ppOrig
Type: IMFMediaType **

[out] Receives a pointer to the IMFMediaType interface of the original media type. The caller must release the interface.

Return value

Type: HRESULT 

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Refer to Media Foundation return codes.

Remarks

Requirements

Header: Declared in mfapi.h.

Library: Use mfplat.lib.