Share via


IMediaFilter::GetSyncSource

 
Microsoft DirectShow 9.0

IMediaFilter::GetSyncSource

The GetSyncSource method retrieves the current reference clock.

Syntax

  HRESULT GetSyncSource(
  IReferenceClock **pClock
);

Parameters

pClock

[out] Receives a pointer to the clock's IReferenceClock interface. The caller must release the interface.

Return Values

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

Return code Description
S_OK Success
E_POINTER NULL pointer argument

Remarks

This method returns the same reference clock as the last call to IMediaFilter::SetSyncSource. If there is no reference clock, pClock receives the value NULL. When the method returns, if *pClock is non-NULL, the IReferenceClock interface has an outstanding reference count. Be sure to release it when you are done.

You can also call this method on the Filter Graph Manager to determine the current reference clock.

Requirements

Header: Declared in Strmif.h; include Dshow.h.

Library: Use Strmiids.lib.

See Also