mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 09:21:18 +02:00
arm/mips: new video setting zapping mode added
This commit is contained in:
@@ -447,6 +447,10 @@ int CNeutrinoApp::loadSetup(const char * fname)
|
||||
g_settings.enabled_auto_modes[i] = configfile.getInt32(cfg_key, 1);
|
||||
}
|
||||
|
||||
#if HAVE_ARM_HARDWARE || HAVE_MIPS_HARDWARE
|
||||
g_settings.zappingmode = configfile.getInt32( "zappingmode", 0);
|
||||
#endif
|
||||
|
||||
#ifdef CPU_FREQ
|
||||
g_settings.cpufreq = configfile.getInt32("cpufreq", 0);
|
||||
g_settings.standby_cpufreq = configfile.getInt32("standby_cpufreq", 100);
|
||||
@@ -1401,6 +1405,11 @@ void CNeutrinoApp::saveSetup(const char * fname)
|
||||
sprintf(cfg_key, "enabled_auto_mode_%d", i);
|
||||
configfile.setInt32(cfg_key, g_settings.enabled_auto_modes[i]);
|
||||
}
|
||||
|
||||
#if HAVE_ARM_HARDWARE || HAVE_MIPS_HARDWARE
|
||||
configfile.setInt32( "zappingmode", g_settings.zappingmode);
|
||||
#endif
|
||||
|
||||
configfile.setInt32( "cpufreq", g_settings.cpufreq);
|
||||
configfile.setInt32( "standby_cpufreq", g_settings.standby_cpufreq);
|
||||
|
||||
@@ -2907,6 +2916,10 @@ TIMER_START();
|
||||
#endif
|
||||
CWeather::getInstance()->setCoords(g_settings.weather_location, g_settings.weather_city);
|
||||
|
||||
#if HAVE_ARM_HARDWARE || HAVE_MIPS_HARDWARE
|
||||
videoDecoder->SetControl(VIDEO_CONTROL_ZAPPING_MODE, g_settings.zappingmode);
|
||||
#endif
|
||||
|
||||
TIMER_STOP("################################## after all ##################################");
|
||||
if (g_settings.softupdate_autocheck) {
|
||||
hintBox = new CHintBox(LOCALE_MESSAGEBOX_INFO, g_Locale->getText(LOCALE_FLASHUPDATE_CHECKUPDATE_INTERNET));
|
||||
|
Reference in New Issue
Block a user