From 2d5bcff8ef8e17a1c7e67d9bf57d3c6efc71645d Mon Sep 17 00:00:00 2001 From: Markus Volk Date: Thu, 5 Mar 2020 08:27:41 +0100 Subject: [PATCH] videosettings.cpp: hide zapmode settings for boxes that dont have it (e.g. osmio) Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/930366584e9c161cd6ef1a9b3d235b91b60677ff Author: Markus Volk Date: 2020-03-05 (Thu, 05 Mar 2020) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/videosettings.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/gui/videosettings.cpp b/src/gui/videosettings.cpp index f5702acde..43d35c5a4 100644 --- a/src/gui/videosettings.cpp +++ b/src/gui/videosettings.cpp @@ -55,6 +55,7 @@ #include #include +#include #include #include @@ -488,12 +489,11 @@ int CVideoSettings::showVideoSetup() videosetup->addItem(pipsetup); #endif -#if HAVE_ARM_HARDWARE || HAVE_MIPS_HARDWARE - 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); - videosetup->addItem(zm); -#endif - + 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); + zm->setHint("", LOCALE_MENU_HINT_VIDEO_ZAPPINGMODE); + videosetup->addItem(zm); + } int res = videosetup->exec(NULL, ""); selected = videosetup->getSelected(); delete videosetup;