aboutsummaryrefslogtreecommitdiff
path: root/Emby.Dlna
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2017-10-22 02:23:24 -0400
committerGitHub <noreply@github.com>2017-10-22 02:23:24 -0400
commitef00237c729cbcc5cdba14560ef57e3e88da762b (patch)
treedc9c476050c4cd0877b838daae3329e45baf7f1f /Emby.Dlna
parentac63ebfb316904da9d36328340a6ef72a932eba0 (diff)
parent61a2c23b0f7d469135b501d543fc6a146ed94f14 (diff)
Merge pull request #2968 from MediaBrowser/dev
Dev
Diffstat (limited to 'Emby.Dlna')
-rw-r--r--Emby.Dlna/Didl/DidlBuilder.cs17
1 files changed, 15 insertions, 2 deletions
diff --git a/Emby.Dlna/Didl/DidlBuilder.cs b/Emby.Dlna/Didl/DidlBuilder.cs
index be76e58163..5b18a2b7c2 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
//{