Sascha-L / WPF-MediaKit

Microsoft Public License
363 stars 115 forks source link

InvalidComObjectException on DirectShowUtil.RemoveFilters #35

Closed ecoChahn closed 7 years ago

ecoChahn commented 7 years ago

i've noticed pretty much whenever DirectShowUtil.RemoveFilters is called from MediaUriPlayer.FreeResources(). It throws an InvalidComObjectException: COM object that has been separated from its underlying RCW cannot be used.

I Imagine this prevents the individual filters from getting cleaned up as desired using this function.

The issue can be illustrated by opening a second source using the test application.