private void TestGetDIT() { int hr = 0; IDVB_DIT dit; hr = parser.GetDIT(1000 * 10, out dit); Debug.Assert((hr == 0) && (dit != null), "IDvbSiParser.GetDIT failed"); if (dit != null) { Marshal.ReleaseComObject(dit); } }
private void Config() { int hr = 0; parser = (IDvbSiParser) new DvbSiParser(); graph = new BdaGraph(); graph.InitializeGraph(); graph.MakeTuneRequest(); graph.RunGraph(); hr = parser.Initialize(graph.bdaSecTab as IMpeg2Data); Debug.Assert(hr == 0, "Initialize failed !!!"); hr = parser.GetDIT(10 * 1000, out dit); Debug.Assert(dit != null, "Can't get a IDVB_DIT object"); }