mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 19:37:55 +02:00
commit
761837a8e6
2 changed files with 17 additions and 2 deletions
|
@ -846,7 +846,7 @@ namespace MediaBrowser.Api.Playback
|
||||||
if (MediaEncoder.SupportsDecoder("h264_qsv"))
|
if (MediaEncoder.SupportsDecoder("h264_qsv"))
|
||||||
{
|
{
|
||||||
// Seeing stalls and failures with decoding. Not worth it compared to encoding.
|
// Seeing stalls and failures with decoding. Not worth it compared to encoding.
|
||||||
//return "-c:v h264_qsv ";
|
return "-c:v h264_qsv ";
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "mpeg2video":
|
case "mpeg2video":
|
||||||
|
|
|
@ -831,9 +831,24 @@ namespace MediaBrowser.Server.Startup.Common
|
||||||
|
|
||||||
private string CertificatePath { get; set; }
|
private string CertificatePath { get; set; }
|
||||||
|
|
||||||
|
private string NormalizeConfiguredLocalAddress(string address)
|
||||||
|
{
|
||||||
|
var index = address.Trim('/').IndexOf('/');
|
||||||
|
|
||||||
|
if (index != -1)
|
||||||
|
{
|
||||||
|
address = address.Substring(index + 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
return address.Trim('/');
|
||||||
|
}
|
||||||
private IEnumerable<string> GetUrlPrefixes()
|
private IEnumerable<string> GetUrlPrefixes()
|
||||||
{
|
{
|
||||||
var hosts = ServerConfigurationManager.Configuration.LocalNetworkAddresses.ToList();
|
var hosts = ServerConfigurationManager
|
||||||
|
.Configuration
|
||||||
|
.LocalNetworkAddresses
|
||||||
|
.Select(NormalizeConfiguredLocalAddress)
|
||||||
|
.ToList();
|
||||||
|
|
||||||
if (hosts.Count == 0)
|
if (hosts.Count == 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue