aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2017-06-19 14:19:50 -0400
committerGitHub <noreply@github.com>2017-06-19 14:19:50 -0400
commit720da21fe003cfc9388657946db1c94452cf703d (patch)
tree45c638e51abf470b2515a74d0879819202bf1c74 /Emby.Server.Implementations
parent31670ab3b52b2a9466034265f6961b7f5cd2cff4 (diff)
parent76c1c723f87a702df0f931ed59ef827bc5197f0a (diff)
Merge pull request #2714 from MediaBrowser/dev
Dev
Diffstat (limited to 'Emby.Server.Implementations')
-rw-r--r--Emby.Server.Implementations/LiveTv/LiveStreamHelper.cs7
1 files changed, 4 insertions, 3 deletions
diff --git a/Emby.Server.Implementations/LiveTv/LiveStreamHelper.cs b/Emby.Server.Implementations/LiveTv/LiveStreamHelper.cs
index 12da1464b..75f423181 100644
--- a/Emby.Server.Implementations/LiveTv/LiveStreamHelper.cs
+++ b/Emby.Server.Implementations/LiveTv/LiveStreamHelper.cs
@@ -16,7 +16,8 @@ namespace Emby.Server.Implementations.LiveTv
private readonly IMediaEncoder _mediaEncoder;
private readonly ILogger _logger;
- const int AnalyzeDurationMs = 1000;
+ const int ProbeAnalyzeDurationMs = 2000;
+ const int PlaybackAnalyzeDurationMs = 1000;
public LiveStreamHelper(IMediaEncoder mediaEncoder, ILogger logger)
{
@@ -36,7 +37,7 @@ namespace Emby.Server.Implementations.LiveTv
Protocol = mediaSource.Protocol,
MediaType = isAudio ? DlnaProfileType.Audio : DlnaProfileType.Video,
ExtractChapters = false,
- AnalyzeDurationMs = AnalyzeDurationMs
+ AnalyzeDurationMs = ProbeAnalyzeDurationMs
}, cancellationToken).ConfigureAwait(false);
@@ -106,7 +107,7 @@ namespace Emby.Server.Implementations.LiveTv
// Try to estimate this
mediaSource.InferTotalBitrate(true);
- mediaSource.AnalyzeDurationMs = AnalyzeDurationMs;
+ mediaSource.AnalyzeDurationMs = PlaybackAnalyzeDurationMs;
}
}
}