Added some ffprobe error handling

This commit is contained in:
LukePulverenti Luke Pulverenti luke pulverenti
2012-08-25 11:30:37 -04:00
parent bbbe6164dc
commit 37dd0c8bdd
3 changed files with 59 additions and 42 deletions

View File

@@ -35,8 +35,11 @@ namespace MediaBrowser.Controller.FFMpeg
FFProbeResult result = Run(item.Path);
// Fire and forget
CacheResult(result, cachePath);
if (result != null)
{
// Fire and forget
CacheResult(result, cachePath);
}
return result;
}