Skip to content

Commit b8e08c0

Browse files
move vlc init
1 parent a7c2145 commit b8e08c0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Assets/Scripts/Game/Video/VLCVideoPlayer.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ public class VLCVideoPlayer : VideoPlayerBehaviour, IVideoPlayer
4444
private Coroutine c;
4545
private Uri lastUri;
4646

47-
static VLCVideoPlayer() => CreateLibVLC(Init.Instance.DebugVLC);
48-
4947
public VLCVideoPlayer(VideoPlayerDescriptor descriptor)
5048
{
5149
GameObject attachedObject = descriptor.gameObject;

Assets/Scripts/Init.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,10 @@ private void Start()
220220
};
221221
#if VLC
222222
if(!NoVLC)
223+
{
223224
Core.Initialize(Application.dataPath);
225+
VLCVideoPlayer.CreateLibVLC(DebugVLC);
226+
}
224227
#endif
225228
GetComponent<CoroutineRunner>()
226229
.Run(LocalPlayer.SafeSwitchScene(1, null,

0 commit comments

Comments
 (0)