IMediaSample::SetSyncPoint
Microsoft DirectShow 9.0 |
IMediaSample::SetSyncPoint
The SetSyncPoint method specifies whether the beginning of this sample is a synchronization point.
Syntax
HRESULT SetSyncPoint( BOOL bIsSyncPoint );
Parameters
bIsSyncPoint
[in] Boolean value that specifies whether this is a synchronization point. If TRUE, this is a synchronization point.
Return Values
Returns S_OK or an HRESULT value indicating the cause of the error.
Remarks
The filter that first generates the data in the sample should set this flag to TRUE or FALSE, as appropriate. For uncompressed video and PCM audio, set every sample to TRUE. For compressed video, set key frames to TRUE and delta frames to FALSE.
This flag is purely informational. Other filters downstream might check this flag; for example, a filter might need to skip to the next key frame.
Requirements
Header: Declared in Strmif.h; include Dshow.h.
Library: Use Strmiids.lib.
See Also