次の方法で共有


CMediaSample::SetDiscontinuity (Compact 2013)

3/26/2014

Sets the discontinuity property.

Syntax

HRESULT SetDiscontinuity(
  BOOL bDiscont 
);

Parameters

  • bDiscont
    Set to TRUE to specify the media sample as discontinuous with the previous sample.

Return Value

Returns an HRESULT value.

Remarks

This member function implements the IMediaSample::SetDiscontinuity method.

It sets the value of the m_dwFlags Sample_Discontinuity flag to the value of bDiscont.

Discontinuous samples occur when a source filter seeks to a different place in the media stream or when a filter drops samples for quality control.

Requirements

Header

dshow.h,
Streams.h

Library

ole32.lib,
Ole32auth.lib,
Strmbase.lib,
Strmiids.lib,
uuid.lib

See Also

Reference

CMediaSample Class