summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2014-03-16 11:03:44 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2014-03-16 11:03:44 +0100
commitcd125ef4dab79dea218858959f3dbd757f09fcd0 (patch)
tree757c88f631ef89011139a0b7cc46b7f38df843d9
parentba9651e86348d56f3b7e937652f78fc0fe9e86fa (diff)
downloadvdr-cd125ef4dab79dea218858959f3dbd757f09fcd0.tar.gz
vdr-cd125ef4dab79dea218858959f3dbd757f09fcd0.tar.bz2
Now initializing the isOnVideoDirectoryFileSystem member of cRecording when scanning the video directory
-rw-r--r--HISTORY5
-rw-r--r--recording.c3
2 files changed, 6 insertions, 2 deletions
diff --git a/HISTORY b/HISTORY
index 53abf68c..b7bdfd62 100644
--- a/HISTORY
+++ b/HISTORY
@@ -7870,7 +7870,7 @@ Video Disk Recorder Revision History
and also to use the correct directory with --edit (the latter reported by Marko
Mäkelä).
-2014-03-11: Version 2.0.6
+2014-03-16: Version 2.0.6
- Updated 'sources.conf' (thanks to Antti Hartikainen).
- cFont::CreateFont() now returns a dummy font in case there are no fonts installed.
@@ -7910,3 +7910,6 @@ Video Disk Recorder Revision History
- The SDT is now only parsed *after* the NIT has been read, and it explicitly uses
the source value derived from the NIT. This should prevent new channels from being
created with the wrong source.
+- 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 19efa42e..d62dd9c8 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 2.91.1.6 2014/02/08 10:57:26 kls Exp $
+ * $Id: recording.c 2.91.1.7 2014/03/16 11:03:18 kls Exp $
*/
#include "recording.h"
@@ -1308,6 +1308,7 @@ void 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();