protected override DirectShow.Binding.IGraph Open(Uri.Locator locator) { DirectShow.Binding.IGraph result = null; if (locator.Path.NotNull()) { string file = locator.PlatformPath; string extension = System.IO.Path.GetExtension(file).ToLower().TrimStart('.'); if (locator.Scheme == "file" && file.NotEmpty() && this.SupportedExtensions.Exists(v => v == extension) && System.IO.File.Exists(file)) { result = new Binding.Graph(); if (!this.Open(result, file)) { result.Close(); result = null; } } } return result; }
protected override DirectShow.Binding.IGraph Open(Uri.Locator locator) { DirectShow.Binding.IGraph result = null; if (locator.Path.NotNull()) { string file = locator.PlatformPath; string extension = System.IO.Path.GetExtension(file).ToLower().TrimStart('.'); if (locator.Scheme == "file" && file.NotEmpty() && this.SupportedExtensions.Exists(v => v == extension) && System.IO.File.Exists(file)) { result = new Binding.Graph(); if (!this.Open(result, file)) { result.Close(); result = null; } } } return(result); }