diff options
| author | Stanislav Ionascu <stanislav.ionascu@gmail.com> | 2022-01-04 21:52:52 +0000 |
|---|---|---|
| committer | Stanislav Ionascu <stanislav.ionascu@gmail.com> | 2022-02-20 13:30:55 +0000 |
| commit | 554d1b2ca8868e7aeb1fa9acac75cb8ce423796a (patch) | |
| tree | 8e64715621287fab6f75f8e18308e7d09605ec76 /Emby.Server.Implementations/Library/Resolvers/GenericVideoResolver.cs | |
| parent | 6a8a6a1325031dd3266c879540fcdc69133ba956 (diff) | |
Fix #7100 by catching the exception on opening invalid UDF images
When an invalid UDF image is opened by the UdfReader, it may throw
and exception. This change is to catch and log the exception.
Diffstat (limited to 'Emby.Server.Implementations/Library/Resolvers/GenericVideoResolver.cs')
| -rw-r--r-- | Emby.Server.Implementations/Library/Resolvers/GenericVideoResolver.cs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Emby.Server.Implementations/Library/Resolvers/GenericVideoResolver.cs b/Emby.Server.Implementations/Library/Resolvers/GenericVideoResolver.cs index b8554bd51..5e33b402d 100644 --- a/Emby.Server.Implementations/Library/Resolvers/GenericVideoResolver.cs +++ b/Emby.Server.Implementations/Library/Resolvers/GenericVideoResolver.cs @@ -1,7 +1,8 @@ -#nullable disable +#nullable disable using Emby.Naming.Common; using MediaBrowser.Controller.Entities; +using Microsoft.Extensions.Logging; namespace Emby.Server.Implementations.Library.Resolvers { @@ -15,9 +16,10 @@ namespace Emby.Server.Implementations.Library.Resolvers /// <summary> /// Initializes a new instance of the <see cref="GenericVideoResolver{T}"/> class. /// </summary> + /// <param name="logger">The logger.</param> /// <param name="namingOptions">The naming options.</param> - public GenericVideoResolver(NamingOptions namingOptions) - : base(namingOptions) + public GenericVideoResolver(ILogger logger, NamingOptions namingOptions) + : base(logger, namingOptions) { } } |
