fix somme inits

This commit is contained in:
Jacek Jendrzej
2020-01-17 22:35:08 +01:00
parent 3cd712967f
commit 29ae868ae6
4 changed files with 7 additions and 4 deletions

View File

@@ -593,9 +593,9 @@ void *tuxtxt_CacheThread(void * /*arg*/)
tstPageinfo *pageinfo_thread;
set_threadname("tuxtxt:cache");
printf("TuxTxt running thread...(%04x)\n",tuxtxt_cache.vtxtpid);
int err = nice(3);
printf("TuxTxt running thread...(%04x)%s\n",tuxtxt_cache.vtxtpid,err!=0?" nice error":"");
tuxtxt_cache.receiving = 1;
nice(3);
while (!stop_cache)
{
/* check stopsignal */

View File

@@ -739,7 +739,7 @@ void CRCInput::getMsg_us(neutrino_msg_t * msg, neutrino_msg_data_t * data, uint6
#ifdef KEYBOARD_INSTEAD_OF_REMOTE_CONTROL
if (FD_ISSET(fd_keyb, &rfds))
{
uint32_t trkey;
uint32_t trkey = 0;
char key = 0;
read(fd_keyb, &key, sizeof(key));

View File

@@ -746,6 +746,7 @@ bool CHDDMenuHandler::scanDevices()
hdd.mounted = false;
hdd.fmt = "";
hdd.desc = hdd.devname;
hdd.cmf = NULL;
hdd_list.push_back(hdd);
}

View File

@@ -604,6 +604,8 @@ void CMovieBrowser::initRows(void)
void CMovieBrowser::defaultSettings(MB_SETTINGS* /*settings*/)
{
MBStorageSettings tmp_store;
tmp_store.storageDirRecUsed = 0;
tmp_store.storageDirMovieUsed = 0;
bool keep = false;
if (ShowMsg(LOCALE_MOVIEBROWSER_LOAD_DEFAULT, LOCALE_MOVIEBROWSER_MESSAGE_KEEP_STORAGE_SETTINGS, CMsgBox::mbrYes, CMsgBox::mbYes | CMsgBox::mbNo, NEUTRINO_ICON_QUESTION) == CMsgBox::mbrYes)
@@ -2991,7 +2993,7 @@ void CMovieBrowser::loadAllTsFileNamesFromStorage(void)
}
}
TRACE("[mb] Dir %d, Files: %d, size %u, used_dirs %u\n", (int)m_dirNames.size(), (int)m_vMovieInfo.size(), size, used_dirs);
TRACE("[mb] Dir %d, Files: %d, size %zu, used_dirs %zu\n", (int)m_dirNames.size(), (int)m_vMovieInfo.size(), size, used_dirs);
}
bool CMovieBrowser::gotMovie(const char *rec_title)