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,9 +124,12 @@ namespace MoonWorks.Video
|
||||||
|
|
||||||
Video = video;
|
Video = video;
|
||||||
|
|
||||||
|
lock (AudioDevice.StateLock)
|
||||||
|
{
|
||||||
InitializeTheoraStream();
|
InitializeTheoraStream();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public void Play()
|
public void Play()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue