Microsoft DirectX 8.1 (C++) |
The IDistributorNotify interface is an optional interface that enables a plug-in distributor to be notified when the filter graph changes.
Applications never use this interface. Implement this interface if you are writing a plug-in distributor (PID) and want the PID to receive notifications of control and changes in the composition of filter graphs.
The Filter Graph Manager queries for this interface on any plug-in distributors that it aggregates. If a PID exposes this interface, the Filter Graph Manager notifies the PID of any state changes by calling IDistributorNotify methods before calling the equivalent IBaseFilter methods on the filters. The Filter Graph Manager also calls the IDistributorNotify::NotifyGraphChange method whenever it adds or removes a filter, or any pin connections change.
During a call to any IDistributorNotify method, do not hold any critical section that might be held by another code path that calls methods on the Filter Graph Manager. Doing so could result in a deadlock.
In addition to the methods inherited from IUnknown, the IDistributorNotify interface exposes the following methods.
Method | Description |
NotifyGraphChange | Called when the set of filters in the filter graph change or their connections change. |
Pause | Called when the filter graph is entering a paused state. |
Run | Called when the filter graph is entering a running state. |
SetSyncSource | Called when a new clock is registered. |
Stop | Called when the filter graph is entering a stopped state. |
See Also