CBaseFilter::GetPinVersion

 
Microsoft DirectShow 9.0

CBaseFilter::GetPinVersion

The GetPinVersion method retrieves a version number for the set of pins on this filter.

Syntax

  virtual long GetPinVersion(void);

Return Value

Returns the CBaseFilter::m_PinVersion member variable.

Remarks

The CBaseFilter constructor initializes the pin version to 1. In the base class, this number never changes. If the filter dynamically creates or destroys pins, it should increment the pin version whenever the pins change. To increment the version number, call the CBaseFilter::IncrementPinVersion method.

The pin enumerator object, which is implemented by the CEnumPins class, uses the pin version to keep itself synchronized with the filter.

Requirements

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

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

See Also