Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
GetOutputMediaType
Collapse the table of content
Expand the table of content

IMFCaptureSink::GetOutputMediaType method

Gets the output format for a stream on this capture sink.

Syntax


HRESULT GetOutputMediaType(
  [in]  DWORD        dwSinkStreamIndex,
  [out] IMFMediaType **ppMediaType
);

Parameters

dwSinkStreamIndex [in]

The zero-based index of the stream to query. The index is returned in the pdwSinkStreamIndex parameter of the IMFCaptureSink::AddStream method.

ppMediaType [out]

Receives a pointer to the IMFMediaType interface. The caller must release the pointer.

Return value

This method can return one of these values.

Return codeDescription
S_OK

Success.

MF_E_INVALIDSTREAMNUMBER

The dwSinkStreamIndex parameter is invalid.

 

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

Mfcaptureengine.h

See also

IMFCaptureSink

 

 

Community Additions

ADD
Show:
© 2015 Microsoft