aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/LiveTv/LiveStreamHelper.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2017-03-05 10:38:36 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2017-03-05 10:38:36 -0500
commitce3f2bdd20024e8dd6cec34bb42e38af0565c225 (patch)
treea50eb00e62695b16314950045e759e539312b068 /Emby.Server.Implementations/LiveTv/LiveStreamHelper.cs
parent8b77a893734e195239553c633f976907eccd0a2c (diff)
reduce AnalyzeDurationMs for live tv
Diffstat (limited to 'Emby.Server.Implementations/LiveTv/LiveStreamHelper.cs')
-rw-r--r--Emby.Server.Implementations/LiveTv/LiveStreamHelper.cs7
1 files changed, 5 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/LiveTv/LiveStreamHelper.cs b/Emby.Server.Implementations/LiveTv/LiveStreamHelper.cs
index e2f973699..9a8a930bd 100644
--- a/Emby.Server.Implementations/LiveTv/LiveStreamHelper.cs
+++ b/Emby.Server.Implementations/LiveTv/LiveStreamHelper.cs
@@ -6,7 +6,6 @@ using System.Threading.Tasks;
using MediaBrowser.Controller.MediaEncoding;
using MediaBrowser.Model.Dlna;
using MediaBrowser.Model.Dto;
-using MediaBrowser.Model.Entities;
using MediaBrowser.Model.Logging;
namespace Emby.Server.Implementations.LiveTv
@@ -16,6 +15,8 @@ namespace Emby.Server.Implementations.LiveTv
private readonly IMediaEncoder _mediaEncoder;
private readonly ILogger _logger;
+ const int AnalyzeDurationMs = 2000;
+
public LiveStreamHelper(IMediaEncoder mediaEncoder, ILogger logger)
{
_mediaEncoder = mediaEncoder;
@@ -34,7 +35,7 @@ namespace Emby.Server.Implementations.LiveTv
Protocol = mediaSource.Protocol,
MediaType = isAudio ? DlnaProfileType.Audio : DlnaProfileType.Video,
ExtractChapters = false,
- AnalyzeDurationSections = 2
+ AnalyzeDurationMs = AnalyzeDurationMs
}, cancellationToken).ConfigureAwait(false);
@@ -98,6 +99,8 @@ namespace Emby.Server.Implementations.LiveTv
// Try to estimate this
mediaSource.InferTotalBitrate(true);
+
+ mediaSource.AnalyzeDurationMs = AnalyzeDurationMs;
}
}
}