diff options
| author | Luke <luke.pulverenti@gmail.com> | 2017-01-21 18:39:40 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-01-21 18:39:40 -0500 |
| commit | e8d370406b3fce64cb3d6ac6690bb0efd53c457b (patch) | |
| tree | 66f20e5db107e428e3096dc9f1d612112362ff26 /Emby.Server.Implementations/LiveTv/LiveStreamHelper.cs | |
| parent | 5dc625663d6cd1c13a1c597926dfd0d2a2613e86 (diff) | |
| parent | ceab0be20bf2d7f568eb7c2cc669b3dce7dbb4fd (diff) | |
Merge pull request #2408 from MediaBrowser/dev
Dev
Diffstat (limited to 'Emby.Server.Implementations/LiveTv/LiveStreamHelper.cs')
| -rw-r--r-- | Emby.Server.Implementations/LiveTv/LiveStreamHelper.cs | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/Emby.Server.Implementations/LiveTv/LiveStreamHelper.cs b/Emby.Server.Implementations/LiveTv/LiveStreamHelper.cs index a338ae23a..78390f084 100644 --- a/Emby.Server.Implementations/LiveTv/LiveStreamHelper.cs +++ b/Emby.Server.Implementations/LiveTv/LiveStreamHelper.cs @@ -96,15 +96,7 @@ namespace Emby.Server.Implementations.LiveTv } // Try to estimate this - if (!mediaSource.Bitrate.HasValue) - { - var total = mediaSource.MediaStreams.Select(i => i.BitRate ?? 0).Sum(); - - if (total > 0) - { - mediaSource.Bitrate = total; - } - } + mediaSource.InferTotalBitrate(); } } } |
