CodeTV.GraphBuilderBDA.ConnectTransportStreamFilters C# (CSharp) Method

ConnectTransportStreamFilters() protected method

protected ConnectTransportStreamFilters ( ) : void
return void
        protected void ConnectTransportStreamFilters()
        {
            int hr = 0;
            IPin pinOut;

            // Connect the MPEG-2 Demux output pin for the "BDA MPEG2 Transport Information Filter"
            //pinOut = DsFindPin.ByDirection(this.mpeg2Demux, PinDirection.Output, 0);
            hr = this.mpeg2Demux.FindPin("1", out pinOut);
            if (pinOut != null)
            {
                hr = this.graphBuilder.Render(pinOut);
                //DsError.ThrowExceptionForHR(hr);
                // In fact the last pin don't render since i havn't added the BDA MPE Filter...
                Marshal.ReleaseComObject(pinOut);
            }

            // Connect the MPEG-2 Demux output pin for the "MPEG-2 Sections and Tables" filter
            //pinOut = DsFindPin.ByDirection(this.mpeg2Demux, PinDirection.Output, 4);
            hr = this.mpeg2Demux.FindPin("5", out pinOut);
            if (pinOut != null)
            {
                hr = this.graphBuilder.Render(pinOut);
                //DsError.ThrowExceptionForHR(hr);
                // In fact the last pin don't render since i havn't added the BDA MPE Filter...
                Marshal.ReleaseComObject(pinOut);
            }
        }