CBaseRenderer::ClearPendingSample (Compact 2013)

3/26/2014

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

Syntax

virtual HRESULT ClearPendingSample(void);

Parameters

None.

Return Value

Returns an HRESULT value.

Remarks

This member function releases the IMediaSample interface. This allows the allocator to reuse it and allocate it to the upstream filter again.

If the state is being changed to inactive, IMemAllocator::GetBuffer returns an error.

This function also resets the current media sample to NULL to indicate that no data is available.

Requirements

Header

dshow.h,
Streams.h

Library

ole32.lib,
Ole32auth.lib,
Strmbase.lib,
Strmiids.lib,
uuid.lib

See Also

Reference

CBaseRenderer Class