Share via


CBaseRenderer::OnReceiveFirstSample

 
Microsoft DirectShow 9.0

CBaseRenderer::OnReceiveFirstSample

The OnReceiveFirstSample method is called when the filter receives a sample while paused.

Syntax

  virtual void OnReceiveFirstSample(
    IMediaSample *pMediaSample
);

Parameters

pMediaSample

Pointer to the sample's IMediaSample interface.

Remarks

The CBaseRenderer::Receive method calls this method. It does nothing in the base class, but the derived class can override it. This method is intended primarily for video renderers. When a video renderer is paused, it typically displays the first sample as a still image.

Seeking the graph while paused also causes this method to be called.

Requirements

**  Header:** Declared in Renbase.h; include Streams.h.

**  Library:** Use Strmbase.lib (retail builds) or Strmbasd.lib (debug builds).

See Also