aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/Playback/BaseStreamingService.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Api/Playback/BaseStreamingService.cs')
-rw-r--r--MediaBrowser.Api/Playback/BaseStreamingService.cs10
1 files changed, 1 insertions, 9 deletions
diff --git a/MediaBrowser.Api/Playback/BaseStreamingService.cs b/MediaBrowser.Api/Playback/BaseStreamingService.cs
index a9d6dad2a..067b47d82 100644
--- a/MediaBrowser.Api/Playback/BaseStreamingService.cs
+++ b/MediaBrowser.Api/Playback/BaseStreamingService.cs
@@ -693,15 +693,7 @@ namespace MediaBrowser.Api.Playback
protected int? GetVideoBitrateParam(StreamState state)
{
- if (state.VideoRequest.VideoBitRate.HasValue)
- {
- // Make sure we don't request a bitrate higher than the source
- var currentBitrate = state.VideoStream == null ? state.VideoRequest.VideoBitRate.Value : state.VideoStream.BitRate ?? state.VideoRequest.VideoBitRate.Value;
-
- return Math.Min(currentBitrate, state.VideoRequest.VideoBitRate.Value);
- }
-
- return null;
+ return state.VideoRequest.VideoBitRate;
}
protected int? GetAudioBitrateParam(StreamState state)