Microsoft Windows CE 3.0  

CBaseRenderer::GetCurrentSample

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Retrieves the current sample waiting at the video renderer, or NULL if there is not one.

virtual IMediaSample *GetCurrentSample(void);

Return Values

Returns a pointer to the sample.

Remarks

The reference count for the sample is incremented before returning. This is so that if the sample comes due for rendering, it is not added back to the allocator free list until the caller of this member function releases it.