DirectShow Filter's Render Problem

xiaoxiao2021-03-06  74

When I discussed questions yesterday, I found that if I have a MPG file in Graphedit, sometimes some Filter will be created multiple times, and then create multiple instance first, then delete the rest, leaving only one; Not creating one, then delete, then create one. This will appear in this way.

If we do this file in the Filter's constructor, the file is operated while the Filter runs, and then in the destructuring function. Then, when this Filter is render, and after being created, after delete, the operation of the file may fail, the reason is very simple, because when a file is opened, the subsequent open request may not be successful - this is really my colleague The problem.

As for why Filter will be created multiple times when render, it may be the need for enumeration, but it is not clear why it is such a order. In addition to Graphedit, MediaPlay is also working with render, I believe there are some other software to work with the smart link of the Render mode. And if it is a determined link, for example, using a GRF file in Graphedit, it is not created for a media file, which does not appear multiple created multiple times. Of course, it may not be encountered.

转载请注明原文地址:https://www.9cbs.com/read-121324.html

New Post(0)