ignore currently loaded video on VideoPlayer.Load

custom_video_shaders
cosmonaut 2022-09-20 11:31:27 -07:00
parent 80f19e4521
commit 23252a149f
1 changed files with 61 additions and 58 deletions

View File

@ -57,6 +57,8 @@ namespace MoonWorks.Video
} }
public void Load(Video video) public void Load(Video video)
{
if (Video != video)
{ {
Stop(); Stop();
@ -119,6 +121,7 @@ namespace MoonWorks.Video
InitializeTheoraStream(); InitializeTheoraStream();
} }
}
public void Play() public void Play()
{ {