From cd125ef4dab79dea218858959f3dbd757f09fcd0 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 16 Mar 2014 11:03:44 +0100 Subject: Now initializing the isOnVideoDirectoryFileSystem member of cRecording when scanning the video directory --- HISTORY | 5 ++++- recording.c | 3 ++- 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(); -- cgit v1.2.3