Robert Oschler
Robert Oschler

Reputation: 14385

How can I determine which filter in my DirectShow filter graph failed when I call IMediaControlRun?

I have a Delphi 6 application using the DSPACK component library that builds a filter graph and then runs it. When I run the Filter Graph I am getting an error via a failed HRESULT return from IMediaControl.Run(), using a cePlay control event status. I know that I can use the HRESULT error code to guess which filter failed, but I would like a better way. Is there a way to ferret out which filter triggered the failure when IMediaControl.Run(csPlay) returns a failed HRESULT code, via a DirectShow call or sequence of calls?

Upvotes: 1

Views: 603

Answers (1)

Roman Ryltsov
Roman Ryltsov

Reputation: 69716

There is no way to know, you are only forwarded the error code from some filter. The best strategy to toubleshoot is to simplify the graph and isolate the problem.

Upvotes: 1

Related Questions