Microsoft Windows CE 3.0  

CBaseRenderer::ClearPendingSample

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.

Called to clear the pending sample when in a stopped or inactivated state.

virtual HRESULT ClearPendingSample(void);

Return Values

Returns an HRESULTvalue.

Remarks

This member function releases the IMediaSampleinterface. This allows the allocator to reuse it and allocate it to the upstream filter again. If the state is being changed to inactive, IMemAllocator::GetBufferwill return an error. This function also resets the current media sample to NULL to indicate that no data is now available.