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

This commit is contained in:
Klaus Schmidinger 2014-03-16 11:03:44 +01:00
parent ba9651e863
commit cd125ef4da
2 changed files with 6 additions and 2 deletions

View File

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

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