mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 08:51:04 +02:00
moviebrowser: try to speed up reload movies
Origin commit data
------------------
Commit: 424250a7b7
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-04-24 (Mon, 24 Apr 2017)
Origin message was:
------------------
- moviebrowser: try to speed up reload movies
This commit is contained in:
@@ -2985,8 +2985,11 @@ bool CMovieBrowser::loadTsFileNamesFromDir(const std::string & dirname)
|
||||
} else {
|
||||
result |= addFile(flist[i], dirItNr);
|
||||
}
|
||||
//NI
|
||||
#if 0
|
||||
if (result)
|
||||
OnLocalProgress(i, count, dirname );
|
||||
#endif
|
||||
}
|
||||
//result = true;
|
||||
}
|
||||
@@ -3228,7 +3231,7 @@ void CMovieBrowser::loadMovies(bool doRefresh)
|
||||
struct timeval t1, t2;
|
||||
gettimeofday(&t1, NULL);
|
||||
|
||||
CProgressWindow loadBox((show_mode == MB_SHOW_YT) ? LOCALE_MOVIEPLAYER_YTPLAYBACK : LOCALE_MOVIEBROWSER_SCAN_FOR_MOVIES, CCW_PERCENT 50, CCW_PERCENT 10, NULL, show_mode == MB_SHOW_YT ? &ytparser.OnProgress : &OnLocalProgress, &OnGlobalProgress);
|
||||
CProgressWindow loadBox((show_mode == MB_SHOW_YT) ? LOCALE_MOVIEPLAYER_YTPLAYBACK : LOCALE_MOVIEBROWSER_SCAN_FOR_MOVIES, CCW_PERCENT 50, CCW_PERCENT 10, NULL, show_mode == MB_SHOW_YT ? &ytparser.OnProgress : /* //NI &OnLocalProgress, */ &OnGlobalProgress);
|
||||
loadBox.enableShadow();
|
||||
loadBox.paint();
|
||||
|
||||
|
Reference in New Issue
Block a user