Microsoft DirectX 8.1 (C++) |
If a filter switches output formats, it may be possible for the downstream filter to accept the new format without reconnecting any pins, stopping the graph, or replacing any filters. To determine whether the pin can accept the new media type while the graph is running, the filter (or an application) calls IPinConnection::DynamicQueryAccept on the input pin connected to the filter's output pin. This method differs from the IPin::QueryAccept method, because QueryAccept does not guarantee that the pin will accept a media type once the filter starts running.
If the new format cannot be accepted with the current connection, the next solution is a dynamic reconnection, described in the following section.