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 code | Description |
|---|---|
|
Success. |
|
The dwSinkStreamIndex parameter is invalid. |
Requirements
|
Minimum supported client | Windows 8 [desktop apps only] |
|---|---|
|
Minimum supported server | Windows Server 2012 [desktop apps only] |
|
Header |
|
See also
Send comments about this topic to Microsoft
Build date: 11/28/2012
