fix validation logging
This commit is contained in:
parent
88be568b40
commit
42b6e88aa7
|
@ -86,20 +86,28 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
|||
"libvorbis",
|
||||
"srt",
|
||||
"h264_nvenc",
|
||||
"h264_qsv"
|
||||
"h264_qsv",
|
||||
"ac3"
|
||||
};
|
||||
|
||||
output = output ?? string.Empty;
|
||||
|
||||
var index = 0;
|
||||
|
||||
foreach (var codec in required)
|
||||
{
|
||||
var srch = " " + codec + " ";
|
||||
|
||||
if (output.IndexOf(srch, StringComparison.OrdinalIgnoreCase) != -1)
|
||||
{
|
||||
_logger.Info("Encoder available: " + codec);
|
||||
if (index < required.Length - 1)
|
||||
{
|
||||
_logger.Info("Encoder available: " + codec);
|
||||
}
|
||||
|
||||
found.Add(codec);
|
||||
}
|
||||
index++;
|
||||
}
|
||||
|
||||
return found;
|
||||
|
|
Loading…
Reference in New Issue
Block a user