共用方式為


IMediaSample::SetDiscontinuity

 
Microsoft DirectShow 9.0

IMediaSample::SetDiscontinuity

The SetDiscontinuity method specifies whether this sample represents a break in the data stream.

Syntax

  HRESULT SetDiscontinuity(
  BOOL bIsDiscontinuity
);

Parameters

bIsDiscontinuity

[in] Boolean value that specifies whether this sample is a discontinuity. If TRUE, the media sample is discontinuous with the previous sample.

Return Values

Returns S_OK, or an HRESULT value indicating the cause of the error.

Requirements

Header: Declared in Strmif.h; include Dshow.h.

Library: Use Strmiids.lib.

See Also