mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-07 11:57:55 +02:00
check codecs in audio direct play profiles
This commit is contained in:
parent
55705c34ec
commit
a80070f478
1 changed files with 13 additions and 0 deletions
|
@ -1038,6 +1038,18 @@ namespace MediaBrowser.Model.Dlna
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Check audio codec
|
||||||
|
List<string> audioCodecs = profile.GetAudioCodecs();
|
||||||
|
if (audioCodecs.Count > 0)
|
||||||
|
{
|
||||||
|
// Check audio codecs
|
||||||
|
string audioCodec = audioStream == null ? null : audioStream.Codec;
|
||||||
|
if (string.IsNullOrEmpty(audioCodec) || !ListHelper.ContainsIgnoreCase(audioCodecs, audioCodec))
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1073,6 +1085,7 @@ namespace MediaBrowser.Model.Dlna
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Check audio codec
|
||||||
List<string> audioCodecs = profile.GetAudioCodecs();
|
List<string> audioCodecs = profile.GetAudioCodecs();
|
||||||
if (audioCodecs.Count > 0)
|
if (audioCodecs.Count > 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue