mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-09 23:30:50 +02:00
Fix null reference when logging
This commit is contained in:
parent
7227d0d48b
commit
c8a95e0926
|
@ -1033,9 +1033,9 @@ namespace MediaBrowser.Model.Dlna
|
|||
{
|
||||
_logger.LogInformation(
|
||||
"Profile: {0}, No video direct play profiles found for {1} with codec {2}",
|
||||
profile.Name ?? "Unknown Profile",
|
||||
mediaSource.Path ?? "Unknown path",
|
||||
videoStream.Codec ?? "Unknown codec");
|
||||
profile?.Name ?? "Unknown Profile",
|
||||
mediaSource?.Path ?? "Unknown path",
|
||||
videoStream?.Codec ?? "Unknown codec");
|
||||
|
||||
return (null, GetTranscodeReasonsFromDirectPlayProfile(mediaSource, videoStream, audioStream, profile.DirectPlayProfiles));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue