IMFSinkWriter::SendStreamTick Method

Indicates a gap in an input stream.

Syntax

public:
HRESULT SendStreamTick(
         DWORD dwStreamIndex,
         LONGLONG llTimestamp
)  

Parameters

dwStreamIndex
Type: DWORD 

[in] The zero-based index of the stream.

llTimestamp
Type: LONGLONG 

[in] The position in the stream where the gap in the data occurs. The value is given in 100-nanosecond units, relative to the start of the stream.

Return value

Type: HRESULT 

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Refer to Media Foundation return codes.

Remarks

For video, call this method once for each missing frame. For audio, call this method at least once per second during a gap in the audio. Set the MFSampleExtension_Discontinuity attribute on the first media sample after the gap.

Internally, this method calls PlaceMarker on the media sink.

This interface is available on Windows Vista if Platform Update Supplement for Windows Vista is installed.

Requirements

Header: Declared in mfreadwrite.h.