IMFByteStreamBuffering::EnableBuffering Method

Enables or disables buffering.

Syntax

public:
HRESULT EnableBuffering(
         BOOL fEnable
)  

Parameters

fEnable
Type: BOOL 

Specifies whether the byte stream buffers data. If TRUE, buffering is enabled. If FALSE, buffering is disabled.

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

Before calling this method, call IMFByteStreamBuffering::SetBufferingParams to set the buffering parameters on the byte stream.

Requirements

Header: Declared in mfidl.h.

Library: Use mfuuid.lib.