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.Diagnostics;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
using MoonWorks.Audio; using MoonWorks.Audio;
@ -124,9 +124,12 @@ namespace MoonWorks.Video
Video = video; Video = video;
lock (AudioDevice.StateLock)
{
InitializeTheoraStream(); InitializeTheoraStream();
} }
} }
}
public void Play() public void Play()
{ {