CodeTV.GraphBuilderPlayer.ConnectFilters C# (CSharp) Method

ConnectFilters() protected method

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

            // Connect the 5 MPEG-2 Demux output pins
            for (int i = 0; i < 5; i++)
            {
                pinOut = DsFindPin.ByDirection(this.mpeg2Demux, PinDirection.Output, i);

                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);
                }
            }
        }