diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2017-10-22 02:22:43 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2017-10-22 02:22:43 -0400 |
| commit | 7e5036a5875cb7f03ad728f970d66471ca30236b (patch) | |
| tree | 31bb5509c42e490e1359483b7f047f63499317d6 /Emby.Dlna | |
| parent | 7e2c52936ff15c2569a5cb6b3c5351c16c4163ff (diff) | |
update image aspect ratio detection
Diffstat (limited to 'Emby.Dlna')
| -rw-r--r-- | Emby.Dlna/Didl/DidlBuilder.cs | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/Emby.Dlna/Didl/DidlBuilder.cs b/Emby.Dlna/Didl/DidlBuilder.cs index be76e5816..5b18a2b7c 100644 --- a/Emby.Dlna/Didl/DidlBuilder.cs +++ b/Emby.Dlna/Didl/DidlBuilder.cs @@ -1137,8 +1137,21 @@ namespace Emby.Dlna.Didl } - int? width = null; - int? height = null; + int? width = imageInfo.Width; + int? height = imageInfo.Height; + + if (width == 0 || height == 0) + { + //_imageProcessor.GetImageSize(item, imageInfo); + width = null; + height = null; + } + + else if (width == -1 || height == -1) + { + width = null; + height = null; + } //try //{ |
