diff --git a/src/neutrino.cpp b/src/neutrino.cpp index 171bd4641..df6d3a848 100644 --- a/src/neutrino.cpp +++ b/src/neutrino.cpp @@ -468,6 +468,7 @@ int CNeutrinoApp::loadSetup(const char * fname) g_settings.epg_save = configfile.getBool("epg_save", false); g_settings.epg_save_standby = configfile.getBool("epg_save_standby", true); g_settings.epg_scan = configfile.getInt32("epg_scan", 0); + g_settings.epg_scan_mode = configfile.getInt32("epg_scan_mode", CEpgScan::MODE_ALWAYS); //widget settings g_settings.widget_fade = false; g_settings.widget_fade = configfile.getBool("widget_fade" , false ); @@ -974,6 +975,7 @@ void CNeutrinoApp::saveSetup(const char * fname) configfile.setBool("epg_save", g_settings.epg_save); configfile.setBool("epg_save_standby", g_settings.epg_save_standby); configfile.setInt32("epg_scan", g_settings.epg_scan); + configfile.setInt32("epg_scan_mode", g_settings.epg_scan_mode); configfile.setInt32("epg_cache_time" ,g_settings.epg_cache ); configfile.setInt32("epg_extendedcache_time" ,g_settings.epg_extendedcache); configfile.setInt32("epg_old_events" ,g_settings.epg_old_events ); @@ -2139,11 +2141,12 @@ void CNeutrinoApp::RealRun(CMenuWidget &mainMenu) InfoClock->enableInfoClock(false); int old_ttx = g_settings.cacheTXT; int old_epg = g_settings.epg_scan; + int old_mode = g_settings.epg_scan_mode; mainMenu.exec(NULL, ""); InfoClock->enableInfoClock(true); StartSubtitles(); saveSetup(NEUTRINO_SETTINGS_FILE); - if (old_epg != g_settings.epg_scan) { + if (old_epg != g_settings.epg_scan || old_mode != g_settings.epg_scan_mode) { if (g_settings.epg_scan) CEpgScan::getInstance()->Start(); else @@ -3751,7 +3754,9 @@ void stop_daemons(bool stopall, bool for_flash) pthread_join(nhttpd_thread, NULL); } printf("httpd shutdown done\n"); + printf("streaming shutdown\n"); CStreamManager::getInstance()->Stop(); + printf("streaming shutdown done\n"); if(stopall || for_flash) { printf("timerd shutdown\n"); if (g_Timerd) diff --git a/src/system/settings.h b/src/system/settings.h index f2d4255f0..d30cffe0d 100644 --- a/src/system/settings.h +++ b/src/system/settings.h @@ -151,6 +151,7 @@ struct SNeutrinoSettings int epg_extendedcache; std::string epg_dir; int epg_scan; + int epg_scan_mode; int epg_search_history_size; int epg_search_history_max;