Esempio n. 1
0
		public override DirectShowLib.IBaseFilter Create()
		{
			this.backend = null;
			try
			{
				if (this.path.NotEmpty())
					this.backend = global::Elecard.Utilities.Filter.LoadFromFile(this.path, ref this.guid);
				if (this.backend.IsNull())
				{
					this.backend = global::Elecard.Utilities.Filter.LoadFromFile(this.GetComponentPath(this.guid), ref this.guid);
					if (this.backend.IsNull())
						this.backend = new global::Elecard.Utilities.Filter(ref this.guid);
				}
			}
			catch (Exception) { }
			return this.backend.NotNull() ? System.Runtime.InteropServices.Marshal.GetObjectForIUnknown(this.backend.GetIUnknown) as DirectShowLib.IBaseFilter : null;
		}
 public override DirectShowLib.IBaseFilter Create()
 {
     this.backend = null;
     try
     {
         if (this.path.NotEmpty())
         {
             this.backend = global::Elecard.Utilities.Filter.LoadFromFile(this.path, ref this.guid);
         }
         if (this.backend.IsNull())
         {
             this.backend = global::Elecard.Utilities.Filter.LoadFromFile(this.GetComponentPath(this.guid), ref this.guid);
             if (this.backend.IsNull())
             {
                 this.backend = new global::Elecard.Utilities.Filter(ref this.guid);
             }
         }
     }
     catch (Exception) { }
     return(this.backend.NotNull() ? System.Runtime.InteropServices.Marshal.GetObjectForIUnknown(this.backend.GetIUnknown) as DirectShowLib.IBaseFilter : null);
 }