summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--HISTORY3
-rw-r--r--recording.c3
2 files changed, 5 insertions, 1 deletions
diff --git a/HISTORY b/HISTORY
index f701a0d5..f203994c 100644
--- a/HISTORY
+++ b/HISTORY
@@ -8252,3 +8252,6 @@ Video Disk Recorder Revision History
it shall implement the proper options in its plugin's SetupMenu() function.
- Added support for "Pilot", "T2-System-Id" and "SISO/MISO" parameters (thanks to
Rolf Ahrenberg).
+- Now initializing the isOnVideoDirectoryFileSystem member of cRecording when
+ scanning the video directory, so that it won't cause a delay when opening the menu
+ on a system with a large number of recordings.
diff --git a/recording.c b/recording.c
index 5da54940..c9261697 100644
--- a/recording.c
+++ b/recording.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: recording.c 3.16 2014/02/08 11:16:02 kls Exp $
+ * $Id: recording.c 3.17 2014/03/16 10:59:04 kls Exp $
*/
#include "recording.h"
@@ -1425,6 +1425,7 @@ bool cRecordings::ScanVideoDir(const char *DirName, bool Foreground, int LinkLev
if (r->Name()) {
r->NumFrames(); // initializes the numFrames member
r->FileSizeMB(); // initializes the fileSizeMB member
+ r->IsOnVideoDirectoryFileSystem(); // initializes the isOnVideoDirectoryFileSystem member
if (deleted)
r->deleted = time(NULL);
Lock();