diff --git a/lib/libtuxtxt/tuxtxt.cpp b/lib/libtuxtxt/tuxtxt.cpp index e896790bc..636eef4bc 100644 --- a/lib/libtuxtxt/tuxtxt.cpp +++ b/lib/libtuxtxt/tuxtxt.cpp @@ -1512,9 +1512,10 @@ void tuxtx_pause_subtitle(bool pause) if(!pause) ttx_paused = 0; else { + printf("TuxTxt subtitle asking to pause...\n"); ttx_req_pause = 1; while(!ttx_paused) - sleep(10); + usleep(10); printf("TuxTxt subtitle paused\n"); } } @@ -1552,7 +1553,7 @@ int tuxtx_main(int _rc, int pid, int page) tuxtxt_cache.page = 0x100; if(page) { tuxtxt_cache.page = page; - use_gui = 1; + use_gui = 0; } #endif @@ -4967,7 +4968,6 @@ void RenderPage() int row, col, byte, startrow = 0;; int national_subset_bak = national_subset; - /* update lcd */ UpdateLCD(); diff --git a/src/neutrino.cpp b/src/neutrino.cpp index 0066838d2..dcb80252c 100644 --- a/src/neutrino.cpp +++ b/src/neutrino.cpp @@ -4468,6 +4468,7 @@ void stop_daemons(bool stopall) pthread_join(sections_thread, NULL); printf("sectionsd shutdown done\n"); #endif + tuxtx_stop_subtitle(); printf("zapit shutdown\n"); g_Zapit->shutdown(); pthread_join(zapit_thread, NULL);