GetFrameCountCached: If failed, clear cache before retrying

This commit is contained in:
n00mkrad
2022-04-05 18:08:02 +02:00
parent 483aa46ebb
commit 19c2e34e92

View File

@@ -45,6 +45,7 @@ namespace Flowframes.Media
if (retryCount > 0)
{
Logger.Log($"Got {frameCount} frames, retrying ({retryCount} left)", true);
Clear();
frameCount = await GetFrameCountAsync(path, retryCount - 1);
}
else