summaryrefslogtreecommitdiff
path: root/recording.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2012-06-03 10:03:55 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2012-06-03 10:03:55 +0200
commit3efb79c855c466a777ce65c85d633eb369d251ba (patch)
tree99fc4d2f741e5ecf0005356299e306c26ff4ebcf /recording.h
parent47e3b4afe22df084ec8db28fabd6f6ec474ab750 (diff)
downloadvdr-3efb79c855c466a777ce65c85d633eb369d251ba.tar.gz
vdr-3efb79c855c466a777ce65c85d633eb369d251ba.tar.bz2
Speeded up opening menus on systems with many (several thousands) of recordings, by caching the information whether a recording is stored on the video directory file system within the cRecording data1.7.28
Diffstat (limited to 'recording.h')
-rw-r--r--recording.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/recording.h b/recording.h
index 30653b05..56659edc 100644
--- a/recording.h
+++ b/recording.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: recording.h 2.32 2012/06/02 13:46:55 kls Exp $
+ * $Id: recording.h 2.33 2012/06/03 09:49:09 kls Exp $
*/
#ifndef __RECORDING_H
@@ -91,6 +91,7 @@ private:
int channel;
int instanceId;
bool isPesRecording;
+ mutable int isOnVideoDirectoryFileSystem; // -1 = unknown, 0 = no, 1 = yes
double framesPerSecond;
cRecordingInfo *info;
cRecording(const cRecording&); // can't copy cRecording
@@ -130,6 +131,7 @@ public:
bool IsNew(void) const { return GetResume() <= 0; }
bool IsEdited(void) const;
bool IsPesRecording(void) const { return isPesRecording; }
+ bool IsOnVideoDirectoryFileSystem(void) const;
void ReadInfo(void);
bool WriteInfo(void);
void SetStartTime(time_t Start);