예제 #1
0
        protected override void OnBeforeGraphRunning()
        {
            base.OnBeforeGraphRunning();

            // first all automatically rendered pins
            FilterGraphTools.RenderOutputPins(_graphBuilder, _fileSource.GetFilter());

            // MSDN: "During the connection process, the Filter Graph Manager ignores pins on intermediate filters if the pin name begins with a tilde (~)."
            // then connect the skipped "~" output pins
            FilterGraphTools.RenderAllManualConnectPins(_graphBuilder);
        }
예제 #2
0
        protected override void OnBeforeGraphRunning()
        {
            base.OnBeforeGraphRunning();

            IFileSourceFilter fileSourceFilter = FilterGraphTools.FindFilterByInterface <IFileSourceFilter>(_graphBuilder);

            // First all automatically rendered pins
            FilterGraphTools.RenderOutputPins(_graphBuilder, (IBaseFilter)fileSourceFilter);

            Marshal.ReleaseComObject(fileSourceFilter);

            // MSDN: "During the connection process, the Filter Graph Manager ignores pins on intermediate filters if the pin name begins with a tilde (~)."
            // then connect the skipped "~" output pins
            FilterGraphTools.RenderAllManualConnectPins(_graphBuilder);
        }