Microsoft DirectX 8.1 (C++)

CSourceStream::FillBuffer

The FillBuffer method fills a media sample with data.

Syntax

virtual HRESULT FillBuffer(
    IMediaSample *pSample
) PURE;

Parameters

pSample

Pointer to the sample's IMediaSample interface.

Return Value

Returns an HRESULT value. Possible values include those shown in the following table.

Value Description
S_FALSE End of stream
S_OK Success

Remarks

The derived class must implement this method.

The media sample given to this method has no time stamps. The derived class should call the IMediaSample::SetTime method to set the time stamps. If appropriate for the media type, the derived class should also set the media times, by calling the IMediaSample::SetMediaTime method. For more information, see Time and Clocks in DirectShow.

See Also