Is it possible to disable filters which WPF's MediaElement is allowed to use?
I am disabling specific filters through IAMPluginControl using DirectShow.NET.
IAMPluginControl pluginControl
= new DirectShowPluginControl() as IAMPluginControl;
if ( pluginControl == null )
{
throw new InvalidOperationException(
"Can't access DirectShow plugin filter control." );
}
bool disabled = pluginControl.SetDisabled(_directVobSub, true) == 0;
disabled &= pluginControl.SetDisabled(_directVobSubAutoloading, true) == 0;
disabled &= pluginControl.SetDisabled(_lavSplitter, true) == 0;
InitializeComponent();
I do this in the constructor of a video control, prior to calling InitializeComponent()
. pluginControl
indicates that the filters are in fact disabled, but this doesn't seem to affect to graph of MediaElement
.
An important note is I can't see the graph explicitly. I am only guessing the graph is still using DirectVobSub as this should give a noticeable different visible result.