- user_menu: get resolution value for livestreams

This commit is contained in:
svenhoefer
2016-03-03 09:03:59 +01:00
committed by M. Liebmann
parent 07b1f6f849
commit 5a9bee721d
3 changed files with 34 additions and 10 deletions

View File

@@ -210,4 +210,12 @@ int CWebTVResolution::Show()
return res;
}
// vim:ts=4
const char *CWebTVResolution::getResolutionValue()
{
for (unsigned int i = 0; i < LIVESTREAM_RESOLUTION_OPTION_COUNT; ++i)
{
if (g_settings.livestreamResolution == LIVESTREAM_RESOLUTION_OPTIONS[i].key)
return LIVESTREAM_RESOLUTION_OPTIONS[i].valname;
}
return "";
}