private void TestGetCAT()
        {
            int  hr = 0;
            ICAT cat;

            hr = parser.GetCAT(1000 * 5, out cat);
            Debug.Assert((hr == 0) && (cat != null), "IDvbSiParser.GetCAT failed");
            if (cat != null)
            {
                Marshal.ReleaseComObject(cat);
            }
        }
Exemple #2
0
        private void Config()
        {
#if ALLOW_UNTESTED_INTERFACES
            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.GetCAT(5 * 1000, out cat);
            Debug.Assert(cat != null, "Can't get a CAT object");
#endif
        }