imageinfo: outsource hal info init into own member

This commit is contained in:
2020-10-13 08:48:03 +02:00
parent 765534f102
commit 57b150c42d
2 changed files with 13 additions and 6 deletions

View File

@@ -377,6 +377,18 @@ void CImageInfo::InitInfoData()
v_info.push_back({g_Locale->getText(LOCALE_IMAGEINFO_VCS), PACKAGE_VERSION_GIT});
#endif
//stb info
initHalInfo();
//internal api versions
initAPIVersions();
//support infos
initSupportInfo();
}
void CImageInfo::initHalInfo()
{
#if USE_STB_HAL
hal_libversion_t ver;
hal_get_lib_version(&ver);
@@ -385,12 +397,6 @@ void CImageInfo::InitInfoData()
//libstb-hal git status
v_info.push_back({g_Locale->getText(LOCALE_IMAGEINFO_VCS), ver.vGitDescribe});
#endif
//internal api versions
initAPIVersions();
//support infos
initSupportInfo();
}
void CImageInfo::initSupportInfo()