videosettings.cpp: hide zapmode settings for boxes that dont have it (e.g. osmio)

Origin commit data
------------------
Branch: ni/coolstream
Commit: 930366584e
Author: Markus Volk <f_l_k@t-online.de>
Date: 2020-03-05 (Thu, 05 Mar 2020)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Markus Volk
2020-03-05 08:27:41 +01:00
committed by vanhofen
parent 740a510ce7
commit 2d5bcff8ef

View File

@@ -55,6 +55,7 @@
#include <daemonc/remotecontrol.h> #include <daemonc/remotecontrol.h>
#include <system/debug.h> #include <system/debug.h>
#include <system/helpers.cpp>
#include <cs_api.h> #include <cs_api.h>
#include <hardware/video.h> #include <hardware/video.h>
@@ -488,12 +489,11 @@ int CVideoSettings::showVideoSetup()
videosetup->addItem(pipsetup); videosetup->addItem(pipsetup);
#endif #endif
#if HAVE_ARM_HARDWARE || HAVE_MIPS_HARDWARE if (file_exists("/proc/stb/video/zapmode")) {
CMenuOptionChooser * zm = new CMenuOptionChooser(LOCALE_VIDEOMENU_ZAPPINGMODE, &g_settings.zappingmode, VIDEOMENU_ZAPPINGMODE_OPTIONS, VIDEOMENU_ZAPPINGMODE_OPTION_COUNT, true, this); CMenuOptionChooser * zm = new CMenuOptionChooser(LOCALE_VIDEOMENU_ZAPPINGMODE, &g_settings.zappingmode, VIDEOMENU_ZAPPINGMODE_OPTIONS, VIDEOMENU_ZAPPINGMODE_OPTION_COUNT, true, this);
zm->setHint("", LOCALE_MENU_HINT_VIDEO_ZAPPINGMODE); zm->setHint("", LOCALE_MENU_HINT_VIDEO_ZAPPINGMODE);
videosetup->addItem(zm); videosetup->addItem(zm);
#endif }
int res = videosetup->exec(NULL, ""); int res = videosetup->exec(NULL, "");
selected = videosetup->getSelected(); selected = videosetup->getSelected();
delete videosetup; delete videosetup;