Share via


CBaseRenderer::GetMediaPositionInterface

 
Microsoft DirectShow 9.0

CBaseRenderer::GetMediaPositionInterface

The GetMediaPositionInterface method retrieves the filter's IMediaPosition and IMediaSeeking interface pointers.

Syntax

  virtual HRESULT GetMediaPositionInterface(
    REFIID riid,
    void **ppv
);

Parameters

riid

Reference identifier of the interface.

ppv

Address of a variable that receives the interface pointer.

Return Value

Returns an HRESULT value. Possible values include those shown in the following table.

Value Description
S_OK Success.
E_OUTOFMEMORY Insufficient memory.
E_NOINTERFACE Interface not supported.

Remarks

The filter delegates all seeking commands to a CRendererPosPassThru object, which passes them upstream. This method creates the CRendererPosPassThru object, if it does not yet exist, and queries it for the requested interface.

The CBaseRenderer::m_pPosition member variable stores a pointer to the CRendererPosPassThru object.

Requirements

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

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

See Also