IAMPushSource::SetStreamOffset

 
Microsoft DirectShow 9.0

IAMPushSource::SetStreamOffset

The SetStreamOffset method sets the offset for time stamps generated by this filter.

Syntax

  HRESULT SetStreamOffset(
  REFERENCE_TIME rtOffset
);

Parameters

rtOffset

[in] New stream offset for the filter.

Return Values

Returns S_FALSE if the specified offset is larger than the filter's maximum preferred offset. Otherwise, returns S_OK if successful or an HRESULT value indicating the cause of the error.

Remarks

The filter graph calls this method to adjust a filter's stream offset, in order to synchronize streams with different latency values.

If the return value is S_FALSE, the filter might not support a buffer large enough for the requested offset. Unless there is another buffer downstream, data might be lost. To retrieve the filter's maximum preferred offset, call the IAMPushSource::GetMaxStreamOffset method.

Requirements

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

Library: Use Strmiids.lib.

See Also