aboutsummaryrefslogtreecommitdiff
path: root/Emby.Dlna
diff options
context:
space:
mode:
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
//{