Compartilhar via


CBaseRenderer::GetCurrentSample

 
Microsoft DirectShow 9.0

CBaseRenderer::GetCurrentSample

The GetCurrentSample method retrieves the current sample.

Syntax

  virtual IMediaSample *GetCurrentSample(void);

Return Value

Returns a pointer to the sample's IMediaSample interface, or NULL if no sample is available.

Remarks

If the return value is non-NULL, the IMediaSample pointer has an outstanding reference count. Be sure to release it.

Requirements

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

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

See Also