Skip to content

DSGraphEdit not working with Filters written in C# #1

Description

@HeyFlash

DSGraphEdit is a great tool! However, I have come across one problem:

Filters that have been written in C# do not work in DSGraphEdit. For example, the filters by Maxim Kartavenkov:
https://www.codeproject.com/Articles/421167/Pure-NET-DirectShow-Filters-in-Csharp
If you try to instantiate any of those filters in DSGraphEdit, the result is an InvalidCastException in DSDaggerUIGraph line 245 (AddSourceFilterForMoniker), because the type of the filter can not be cast to IBaseFilter.
Kartavenkov's filters also derive from IBaseFilter, but the definition of that IBaseFilter in C# is a little different from DSGraphEdit's.

I tried catching the Exception and use the alternative AddFilterByDevicePath instead, however this only leads to the same exception occuring a little further down the road.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions