IMFStreamDescriptor::GetMediaTypeHandler Method

Retrieves a media type handler for the stream. The media type handler can be used to enumerate supported media types for the stream, get the current media type, and set the media type.

Syntax

public:
HRESULT GetMediaTypeHandler(
         IMFMediaTypeHandler **ppMediaTypeHandler
)  

Parameters

ppMediaTypeHandler
Type: IMFMediaTypeHandler **

[out, optional]

Receives a pointer to the IMFMediaTypeHandler interface. 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 mfidl.h.

Library: Use mfuuid.lib.