public override void AddCapability(ICapability capability)
        {
            base.AddCapability (capability);

            if(ssc == null)
            {
                ssc = (ScreenScraperCapability)capability;
            }
        }
示例#2
0
        public override bool RemoveCapability(ICapability capability)
        {
            bool ret = base.RemoveCapability (capability);

            if(ret)
            {
                ssc = null;

                fgm.Stop();
                FilterGraph.RemoveAllFilters(fgm);
                fgm = null;
            }

            return ret;
        }