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:
vanhofen
2017-04-24 10:36:23 +02:00
parent 7d84d9d1d6
commit b9db68a682

View File

@@ -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();