Beispiel #1
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 !!!");

            for (short i = 0x10; i <= 0x14; i++)
            {
                hr = parser.GetST(i, 10 * 1000, out st);
                if (st != null)
                {
                    break;
                }
            }

            Debug.Assert(st != null, "Can't get a ST object");
        }