mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-08-03 22:40:09 +00:00
add error handling
This commit is contained in:
parent
367e16dcdf
commit
3ebfb59456
1 changed files with 5 additions and 1 deletions
|
|
@ -322,7 +322,11 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
|||
files = Directory.GetFiles(path, "*", SearchOption.AllDirectories);
|
||||
|
||||
ffmpegPath = files.FirstOrDefault(i => string.Equals(Path.GetFileNameWithoutExtension(i), "ffmpeg", StringComparison.OrdinalIgnoreCase));
|
||||
ffprobePath = GetProbePathFromEncoderPath(ffmpegPath);
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(ffmpegPath))
|
||||
{
|
||||
ffprobePath = GetProbePathFromEncoderPath(ffmpegPath);
|
||||
}
|
||||
}
|
||||
|
||||
return new Tuple<string, string>(ffmpegPath, ffprobePath);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue