aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/Playback/Progressive/BaseProgressiveStreamingService.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2014-04-22 20:50:47 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2014-04-22 20:50:47 -0400
commitfdd8c67162233659656d3c719a6734cbe5f87d9f (patch)
tree19a8187dcf4a6df362d93dfb44b4e31aa6ba5929 /MediaBrowser.Api/Playback/Progressive/BaseProgressiveStreamingService.cs
parent54eb7cb85537ef6959e3f1fab7871361b9bf8243 (diff)
add correct media format profiles to res elements
Diffstat (limited to 'MediaBrowser.Api/Playback/Progressive/BaseProgressiveStreamingService.cs')
-rw-r--r--MediaBrowser.Api/Playback/Progressive/BaseProgressiveStreamingService.cs11
1 files changed, 1 insertions, 10 deletions
diff --git a/MediaBrowser.Api/Playback/Progressive/BaseProgressiveStreamingService.cs b/MediaBrowser.Api/Playback/Progressive/BaseProgressiveStreamingService.cs
index 29ad3e500..f39169dbd 100644
--- a/MediaBrowser.Api/Playback/Progressive/BaseProgressiveStreamingService.cs
+++ b/MediaBrowser.Api/Playback/Progressive/BaseProgressiveStreamingService.cs
@@ -308,16 +308,7 @@ namespace MediaBrowser.Api.Playback.Progressive
/// <returns>System.Nullable{System.Int64}.</returns>
private long? GetEstimatedContentLength(StreamState state)
{
- var totalBitrate = 0;
-
- if (state.Request.AudioBitRate.HasValue)
- {
- totalBitrate += state.Request.AudioBitRate.Value;
- }
- if (state.VideoRequest != null && state.VideoRequest.VideoBitRate.HasValue)
- {
- totalBitrate += state.VideoRequest.VideoBitRate.Value;
- }
+ var totalBitrate = state.TotalOutputBitrate ?? 0;
if (totalBitrate > 0 && state.RunTimeTicks.HasValue)
{