Browse Source

Fix MaxBitrate

artiume 5 years ago
parent
commit
b5342bb7d9
1 changed files with 2 additions and 5 deletions
  1. 2 5
      MediaBrowser.Api/Playback/MediaInfoService.cs

+ 2 - 5
MediaBrowser.Api/Playback/MediaInfoService.cs

@@ -506,11 +506,8 @@ namespace MediaBrowser.Api.Playback
 
 
             if (mediaSource.SupportsTranscoding)
             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
                 // The MediaSource supports direct stream, now test to see if the client supports it
                 var streamInfo = string.Equals(item.MediaType, MediaType.Audio, StringComparison.OrdinalIgnoreCase)
                 var streamInfo = string.Equals(item.MediaType, MediaType.Audio, StringComparison.OrdinalIgnoreCase)
                     ? streamBuilder.BuildAudioItem(options)
                     ? streamBuilder.BuildAudioItem(options)