diff --git a/src/Video/VideoPlayer.cs b/src/Video/VideoPlayer.cs index 59f3c3d..c5da121 100644 --- a/src/Video/VideoPlayer.cs +++ b/src/Video/VideoPlayer.cs @@ -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(); + } } }