fix video loader race condition
parent
b0259e2b61
commit
d69f62d2ce
|
@ -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,7 +124,10 @@ namespace MoonWorks.Video
|
||||||
|
|
||||||
Video = video;
|
Video = video;
|
||||||
|
|
||||||
InitializeTheoraStream();
|
lock (AudioDevice.StateLock)
|
||||||
|
{
|
||||||
|
InitializeTheoraStream();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue