예제 #1
0
        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);
            }
        }
예제 #2
0
        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");
        }