IMFSample::GetBufferCount Method

Retrieves the number of buffers in the sample.

Syntax

public:
HRESULT GetBufferCount(
         DWORD *pdwBufferCount
)  

Parameters

pdwBufferCount
Type: DWORD *

[out]

Receives the number of buffers in the sample. A sample might contain zero buffers.

Return value

Type: HRESULT 

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return codes
Return code Description
S_OK The method succeeded.

Refer to Media Foundation return codes.

Remarks

Requirements

Header: Declared in mfobjects.h (include mfidl.h).

Library: Use mfuuid.lib.