IAMPushSource::GetMaxStreamOffset

 
Microsoft DirectShow 9.0

IAMPushSource::GetMaxStreamOffset

The GetMaxStreamOffset method retrieves the maximum stream offset the filter can support.

Syntax

  HRESULT GetMaxStreamOffset(
  REFERENCE_TIME *prtMaxOffset
);

Parameters

prtMaxOffset

[out] Pointer to a variable that receives a reference time indicating the maximum offset the filter can support.

Return Values

Returns an HRESULT value that depends on the implementation of the interface. The DirectShow implementation returns E_POINTER or S_OK.

Remarks

If the stream offset is set to a value larger than the maximum supported offset, the filter is not guaranteed to have a buffer large enough to hold data for the entire amount of the offset. Unless there is another buffer downstream, data might be lost.

Requirements

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

Library: Use Strmiids.lib.

See Also