add error handling to dlna channel support

This commit is contained in:
Luke Pulverenti
2014-07-31 20:37:06 -04:00
parent a37a11c486
commit 3fa2a001c7
46 changed files with 1689 additions and 439 deletions

View File

@@ -400,6 +400,9 @@ namespace MediaBrowser.Model.Dlna
{
if (width.HasValue && height.HasValue)
{
if ((width.Value <= 160) && (height.Value <= 160))
return MediaFormatProfile.JPEG_SM;
if ((width.Value <= 640) && (height.Value <= 480))
return MediaFormatProfile.JPEG_SM;
@@ -407,9 +410,11 @@ namespace MediaBrowser.Model.Dlna
{
return MediaFormatProfile.JPEG_MED;
}
return MediaFormatProfile.JPEG_LRG;
}
return MediaFormatProfile.JPEG_LRG;
return MediaFormatProfile.JPEG_SM;
}
}
}