diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2013-12-25 10:57:36 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2013-12-25 10:57:36 +0100 |
commit | 1045069fee38d6ca05fa02d7faf6a587e6054ec9 (patch) | |
tree | 71ef951e3eba5315d4c3a5f8210cb560887a8748 /recording.h | |
parent | cca9d858a7db91f6d73e19d588732e789dc10b4f (diff) | |
download | vdr-1045069fee38d6ca05fa02d7faf6a587e6054ec9.tar.gz vdr-1045069fee38d6ca05fa02d7faf6a587e6054ec9.tar.bz2 |
Fixed a possible crash if the recordings list is updated externally while the Recordings menu is open
Diffstat (limited to 'recording.h')
-rw-r--r-- | recording.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/recording.h b/recording.h index ff3119da..66239ea8 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.46 2013/03/04 14:01:23 kls Exp $ + * $Id: recording.h 2.46.1.1 2013/12/25 10:54:05 kls Exp $ */ #ifndef __RECORDING_H @@ -26,6 +26,7 @@ extern bool DirectoryEncoding; extern int InstanceId; void RemoveDeletedRecordings(void); +void ClearVanishedRecordings(void); void AssertFreeDiskSpace(int Priority = 0, bool Force = false); ///< The special Priority value -1 means that we shall get rid of any ///< deleted recordings faster than normal (because we're cutting). @@ -160,11 +161,12 @@ class cRecordings : public cList<cRecording>, public cThread { private: static char *updateFileName; bool deleted; + bool initial; time_t lastUpdate; int state; const char *UpdateFileName(void); void Refresh(bool Foreground = false); - void ScanVideoDir(const char *DirName, bool Foreground = false, int LinkLevel = 0); + void ScanVideoDir(const char *DirName, bool Foreground = false, int LinkLevel = 0, int DirLevel = 0); protected: void Action(void); public: @@ -199,6 +201,8 @@ public: ///< this value is unknown. }; +/// Any access to Recordings that loops through the list of recordings +/// needs to hold a thread lock on this object! extern cRecordings Recordings; extern cRecordings DeletedRecordings; |