Menu

Best way to traverse filters

Carmen
2009-08-19
2012-10-29
  • Carmen

    Carmen - 2009-08-19

    What is the best way to traverse through filters backwards starting with the renderers. What I'm doing is rendering a media file using filtergraph.render(), then I'm finding the renderering filters using FindFilterByName since they always have the same name. Then I want to go filter by filter backwards and remove filters. The problem is I can't use find by name since they will not always be named the same.

    I looked at EnumFilters but it looks like you need to know the filter name so I'm not much better off.

    Basically I need to be able to get a pin and then find the filter that is attached to it?
    Any ideas?

     
    • snarfle

      snarfle - 2009-08-19

      You mean like what you get from IPin::QueryPinInfo?

       
    • Carmen

      Carmen - 2009-08-19

      yes thank you, perfect

       

Log in to post a comment.