Compartilhar via


IStreamBufferRecordControl::Stop

 
Microsoft DirectShow 9.0

IStreamBufferRecordControl::Stop

This topic applies only to Windows XP Service Pack 1 or later.

The Stop method stops the recording and closes the file.

Syntax

  HRESULT Stop(
  REFERENCE_TIME  rtStop
);

Parameters

rtStop

[in]  Specifies when the recording stops. The time is relative to the current stream time, in 100-nanosecond units. The value zero represents now; negative values are in the past; and positive values are in the future.

  • For content recordings, the valid range is from 0 to 5 seconds (50000000), inclusive. Negative times are not valid.
  • For reference recordings, a negative time is valid if it falls within valid recorded content.

Return Values

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

Value Description
S_OK The method succeeded.

Remarks

The stop time must be greater than or equal to the start time.

Requirements

Header: Include Sbe.h.

See Also