private void Config() { m_ixd = (IXml2Dex) new Xml2Dex(); m_pTimeline = (IAMTimeline) new AMTimeline(); IRenderEngine ire = (IRenderEngine) new RenderEngine(); m_ifg = (IFilterGraph) new FilterGraph(); ire.SetFilterGraph((IGraphBuilder)m_ifg); }
private void TestFilterGraph() { int hr; m_ifg = (IFilterGraph) new FilterGraph(); IGraphBuilder ifg2; hr = m_ire.SetFilterGraph((IGraphBuilder)m_ifg); DESError.ThrowExceptionForHR(hr); m_rot = new DsROTEntry(m_ifg); hr = m_ire.GetFilterGraph(out ifg2); DESError.ThrowExceptionForHR(hr); Debug.Assert(m_ifg == ifg2, "FilterGraph"); hr = m_ire.GetFilterGraph(out ifg2); DESError.ThrowExceptionForHR(hr); }