コード例 #1
0
        public override bool RemoveCapability(ICapability capability)
        {
            bool ret = base.RemoveCapability(capability);

            if (ret)
            {
                if (fgm != null)
                {
                    fgm.Stop();
                    FilterGraph.RemoveFromRot(rotID);
                    FilterGraph.RemoveAllFilters(fgm);
                    fgm = null;
                }

                if (fgmEventMonitor != null)
                {
                    fgmEventMonitor.FgmEvent -= new FgmEventMonitor.FgmEventHandler(FgmEvent);
                    fgmEventMonitor.Dispose();
                    fgmEventMonitor = null;
                }

                wmf = null;
            }

            return(ret);
        }
コード例 #2
0
        public override void AddCapability(ICapability capability)
        {
            base.AddCapability(capability);

            if (wmf == null)
            {
                wmf = (WMFileCapability)capability;
            }
        }
コード例 #3
0
ファイル: frmWMV.cs プロジェクト: abhishek-kumar/AIGA
        public override bool RemoveCapability(ICapability capability)
        {
            bool ret = base.RemoveCapability(capability);

            if (ret)
            {
                if (fgm != null)
                {
                    fgm.Stop();
                    FilterGraph.RemoveFromRot(rotID);
                    FilterGraph.RemoveAllFilters(fgm);
                    fgm = null;
                }

                if (fgmEventMonitor != null)
                {
                    fgmEventMonitor.FgmEvent -= new FgmEventMonitor.FgmEventHandler(FgmEvent);
                    fgmEventMonitor.Dispose();
                    fgmEventMonitor = null;
                }

                wmf = null;
            }

            return ret;
        }
コード例 #4
0
ファイル: frmWMV.cs プロジェクト: abhishek-kumar/AIGA
        public override void AddCapability(ICapability capability)
        {
            base.AddCapability(capability);

            if (wmf == null)
            {
                wmf = (WMFileCapability)capability;
            }
        }