From b9db68a6828aeb01c41c199633d35b3cb7259c58 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Mon, 24 Apr 2017 10:36:23 +0200 Subject: [PATCH] moviebrowser: try to speed up reload movies Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/424250a7b770e1a72408cc9f38566991d8ea13d8 Author: vanhofen Date: 2017-04-24 (Mon, 24 Apr 2017) Origin message was: ------------------ - moviebrowser: try to speed up reload movies --- src/gui/moviebrowser/mb.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gui/moviebrowser/mb.cpp b/src/gui/moviebrowser/mb.cpp index 26d9335cb..0dc7eebca 100644 --- a/src/gui/moviebrowser/mb.cpp +++ b/src/gui/moviebrowser/mb.cpp @@ -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();