Export (0) Print
Expand All
0 out of 3 rated this helpful - Rate this topic

Filter Graph Manager

 
Microsoft DirectShow 9.0

Filter Graph Manager

The Filter Graph Manager builds and controls filter graphs. This object is the central component in DirectShow. Applications use it to build and control filter graphs. The Filter Graph Manager also handles synchronization, event notification, and other aspects of the controlling the filter graph. Create this object by calling CoCreateInstance.

Class Identifier

There are two CLSIDs for creating the Filter Graph Manager.

CLSID Description
CLSID_FilterGraph Creates the Filter Graph Manager on a shared worker thread.
CLSID_FilterGraphNoThread Creates the Filter Graph Manager on the application thread.

Generally, applications should use CLSID_FilterGraph. Both CLSIDs create the same object, but they use different threading models:

  • CLSID_FilterGraph creates the Filter Graph Manager on a worker thread, which is shared by all CLSID_FilterGraph instances within the same process. The thread dispatches messages sent by filters, and controls the lifetime of any windows created by filters.
  • CLSID_FilterGraphNoThread creates the Filter Graph Manager on the application's thread. If you use this CLSID, the thread that calls CoCreateInstance must have a message loop that dispatches messages; otherwise, deadlocks can occur. Also, before the application thread exits, it must release the Filter Graph Manager and all graph objects (such as filters, pins, reference clocks, and so forth).

Interfaces

The Filter Graph Manager exposes the following interfaces:


Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.