mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-22 10:04:44 +01:00
add error handling to dlna channel support
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user