IMFTranscodeSinkInfoProvider::GetSinkInfo method (mfidl.h)

Gets the media types for the audio and video streams specified in the transcode profile.

Syntax

HRESULT GetSinkInfo(
  [out] MF_TRANSCODE_SINK_INFO *pSinkInfo
);

Parameters

[out] pSinkInfo

A pointer to an MF_TRANSCODE_SINK_INFO structure.

If the method succeeds, the method assigns IMFMediaType pointers to the pAudioMediaType and pVideoMediaType members of this structure. The method might set either member to NULL. If either member is non-NULL after the method returns, the caller must release the IMFMediaType pointers.

Return value

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

Remarks

Before calling this method, call IMFTranscodeSinkInfoProvider::SetProfile to set the transcode profile. The GetSinkInfo method uses the profile to create media types for the audio and video streams.

Requirements

   
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Target Platform Windows
Header mfidl.h

See also

IMFTranscodeProfile Interface

IMFTranscodeSinkInfoProvider