commit
720da21fe0
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
using System.Reflection;
|
||||
|
||||
[assembly: AssemblyVersion("3.2.20.5")]
|
||||
[assembly: AssemblyVersion("3.2.20.6")]
|
||||
|
|
|
@ -130,11 +130,18 @@ namespace SocketHttpListener.Net
|
|||
var thisRef = (HttpListenerResponse)iar.AsyncState;
|
||||
try
|
||||
{
|
||||
thisRef.OutputStream.EndWrite(iar);
|
||||
try
|
||||
{
|
||||
thisRef.OutputStream.EndWrite(iar);
|
||||
}
|
||||
finally
|
||||
{
|
||||
thisRef.Close(false);
|
||||
}
|
||||
}
|
||||
finally
|
||||
catch (Exception)
|
||||
{
|
||||
thisRef.Close(false);
|
||||
// In case response was disposed during this time
|
||||
}
|
||||
}, this);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user