Fix: macOS use quality profile FPS/bitrate, add HW resolution downscaling
This commit is contained in:
@@ -53,8 +53,9 @@ static int ParseRemotePortFromFrpConfig(const std::string& frpConfig);
|
||||
static bool FreeFrpPortAllocation(int port, const std::string& expectedOwner);
|
||||
|
||||
// 获取所有授权信息
|
||||
std::vector<LicenseInfo> GetAllLicenses()
|
||||
std::vector<LicenseInfo> GetAllLicenses(int* activeNum)
|
||||
{
|
||||
if (activeNum) *activeNum = 0;
|
||||
std::lock_guard<std::recursive_mutex> _lock(LicensesIniMutex());
|
||||
std::vector<LicenseInfo> licenses;
|
||||
std::string iniPath = GetLicensesPath();
|
||||
@@ -98,6 +99,7 @@ std::vector<LicenseInfo> GetAllLicenses()
|
||||
it = kv.find("Status");
|
||||
if (it != kv.end()) info.Status = it->second;
|
||||
else info.Status = LICENSE_STATUS_ACTIVE; // 默认为有效
|
||||
if (activeNum && info.Status == LICENSE_STATUS_ACTIVE) (*activeNum)++;
|
||||
|
||||
it = kv.find("PendingExpireDate");
|
||||
if (it != kv.end()) info.PendingExpireDate = it->second;
|
||||
|
||||
Reference in New Issue
Block a user