fix video loader race condition

pull/47/head
cosmonaut 2023-03-06 16:43:31 -08:00
parent b0259e2b61
commit d69f62d2ce
1 changed files with 5 additions and 2 deletions

View File

@ -1,4 +1,4 @@
using System;
using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
using MoonWorks.Audio;
@ -124,7 +124,10 @@ namespace MoonWorks.Video
Video = video;
InitializeTheoraStream();
lock (AudioDevice.StateLock)
{
InitializeTheoraStream();
}
}
}