mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-22 16:54:46 +03:00
Apply review suggestions
This commit is contained in:
@@ -1477,6 +1477,13 @@ namespace MediaBrowser.Model.Dlna
|
|||||||
|
|
||||||
private bool IsBitrateLimitExceeded(MediaSourceInfo item, long maxBitrate)
|
private bool IsBitrateLimitExceeded(MediaSourceInfo item, long maxBitrate)
|
||||||
{
|
{
|
||||||
|
// Don't restrict by bitrate if coming from an external domain
|
||||||
|
if (item.IsRemote)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
long requestedMaxBitrate = maxBitrate > 0 ? maxBitrate : 1000000;
|
long requestedMaxBitrate = maxBitrate > 0 ? maxBitrate : 1000000;
|
||||||
|
|
||||||
// If we don't know the bitrate, then force a transcode if requested max bitrate is under 40 mbps
|
// If we don't know the bitrate, then force a transcode if requested max bitrate is under 40 mbps
|
||||||
|
|||||||
Reference in New Issue
Block a user