DirectShow Animated Header -- ISeekingPassThru Interface DirectShow Animated Header -- ISeekingPassThru Interface* Microsoft DirectShow SDK
*Index  *Topic Contents
*Previous Topic: IResourceManager Interface
*Next Topic: IStandardCutList Interface

ISeekingPassThru Interface


The ISeekingPassThru interface is exposed on video renderer filters. It has only one method, Init, which you use to instantiate and initialize a CRendererPosPassThru object. Use this object to keep track of reference times and stream times. The IMediaSeeking and IMediaPosition interfaces can use these times to seek to various places in multimedia files.

When to Implement

Implement this interface when you write a video renderer filter that needs to keep track of reference time and stream time.

When to Use

Use this interface in your application when you want to create a CRendererPosPassThru class object.

Methods in Vtable Order
IUnknown methods Description
QueryInterface Retrieves pointers to supported interfaces.
AddRef Increments the reference count.
Release Decrements the reference count.
ISeekingPassThru methods Description
Init Initializes a CRendererPosPassThru renderer-seeking object.


ISeekingPassThru::Init

ISeekingPassThru Interface

Initializes a CRendererPosPassThru renderer-seeking object.

HRESULT Init(
  BOOL bSupportRendering,
  IPin *pPin
  );

Parameters
bSupportRendering
[in] TRUE indicates the pin specified in pPin is a renderer pin; FALSE indicates not a renderer pin.
pPin
[in] Pointer to the filter's input pin.
Return Values

Returns an HRESULT value that depends on the implementation of the interface. Current DirectShow implementation return values include:
Value Meaning
E_FAIL Failed to create and initialize a CRendererPosPassThru object.
E_OUTOFMEMORY Not enough memory to create the object.
NOERROR Successfully created and initialized a CRendererPosPassThru object.

Remarks

This method instantiates and initializes a CRendererPosPassThru object.

© 1998 Microsoft Corporation. All rights reserved. Terms of Use.

*Top of Page