Ejemplo n.º 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, "Itsdtialize failed !!!");

            hr = parser.GetTSDT(out tsdt);
            Debug.Assert(tsdt != null, "Can't get a TSDT object");
        }
Ejemplo n.º 2
0
        private void TestGetTSDT()
        {
            int hr = 0;

            int[] pids = { 0x02 };
            ITSDT tsdt;

            hr = pidMapper.MapPID(pids.Length, pids, MediaSampleContent.ElementaryStream);
            DsError.ThrowExceptionForHR(hr);

            hr = parser.GetTSDT(out tsdt);
            Debug.Assert((hr == 0) && (tsdt != null), "IDvbSiParser.GetTSDT failed (" + hr + ")");
            if (tsdt != null)
            {
                Marshal.ReleaseComObject(tsdt);
            }
        }