This topic has not yet been rated - Rate this topic

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

 

 

Send comments about this topic to Microsoft

Build date: 11/28/2012

Community Additions

ADD
© 2013 Microsoft. All rights reserved.