public virtual void PauseGraph()
{
IMediaControl mediaControl = this.graphBuilder as IMediaControl;
FilterState pfs;
mediaControl.GetState(0, out pfs);
if (pfs == FilterState.Running)
{
int hr = mediaControl.Pause();
ThrowExceptionForHR("Pausing the graph: ", hr);
IsPossibleGraphRun = true;
IsPossibleGraphPause = false;
IsPossibleGraphStop = true;
}
}