Skip to content

Commit

Permalink
Fix Rare Modified List Exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Alkl58 committed Jan 27, 2022
1 parent 58438e9 commit 9b4b200
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NotEnoughAV1Encodes/Video/VideoEncode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public void Encode(int _workerCount, List<string> VideoChunks, Queue.QueueElemen
chunkProgress.ChunkName = chunk;
chunkProgress.Progress = 0;

List<Queue.ChunkProgress> tempList = queueElement.ChunkProgress;
List<Queue.ChunkProgress> tempList = queueElement.ChunkProgress.ToList();
if (!tempList.Any(n => n.ChunkName == chunk))
{
queueElement.ChunkProgress.Add(chunkProgress);
Expand Down

0 comments on commit 9b4b200

Please sign in to comment.