|
|
@ -389,9 +389,10 @@ namespace MediaBrowser.Model.Dlna
|
|
|
|
/// <param name="type">The <see cref="DlnaProfileType"/>.</param>
|
|
|
|
/// <param name="type">The <see cref="DlnaProfileType"/>.</param>
|
|
|
|
/// <param name="playProfile">The <see cref="DirectPlayProfile"/> object to get the video stream from.</param>
|
|
|
|
/// <param name="playProfile">The <see cref="DirectPlayProfile"/> object to get the video stream from.</param>
|
|
|
|
/// <returns>The normalized input container.</returns>
|
|
|
|
/// <returns>The normalized input container.</returns>
|
|
|
|
public static string NormalizeMediaSourceFormatIntoSingleContainer(string inputContainer, DeviceProfile? profile, DlnaProfileType type, DirectPlayProfile? playProfile = null)
|
|
|
|
public static string? NormalizeMediaSourceFormatIntoSingleContainer(string inputContainer, DeviceProfile? profile, DlnaProfileType type, DirectPlayProfile? playProfile = null)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (profile is null || !inputContainer.Contains(',', StringComparison.OrdinalIgnoreCase))
|
|
|
|
// If the source is Live TV the inputContainer will be null until the mediasource is probed on first access
|
|
|
|
|
|
|
|
if (profile is null || string.IsNullOrEmpty(inputContainer) || !inputContainer.Contains(',', StringComparison.OrdinalIgnoreCase))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return inputContainer;
|
|
|
|
return inputContainer;
|
|
|
|
}
|
|
|
|
}
|
|
|
|