Fixed threading bug in Player.