Fix MaxBitrate

This commit is contained in:
artiume 2020-02-11 10:57:16 -05:00 committed by GitHub
parent 4d324046ac
commit b5342bb7d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -506,11 +506,8 @@ namespace MediaBrowser.Api.Playback
if (mediaSource.SupportsTranscoding)
{
if (mediaSource.IsRemote && user.Policy.ForceRemoteSourceTranscoding)
{
options.MaxBitrate = GetMaxBitrate(maxBitrate, user);
}
options.MaxBitrate = GetMaxBitrate(maxBitrate, user);
// The MediaSource supports direct stream, now test to see if the client supports it
var streamInfo = string.Equals(item.MediaType, MediaType.Audio, StringComparison.OrdinalIgnoreCase)
? streamBuilder.BuildAudioItem(options)