Now initializing the isOnVideoDirectoryFileSystem member of cRecording when scanning the video directory

This commit is contained in:
Klaus Schmidinger 2014-03-16 11:01:46 +01:00
parent 25e2dbf031
commit 8af9abbbb9
2 changed files with 5 additions and 1 deletions

View File

@ -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.

View File

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