diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2016-12-13 13:54:00 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2016-12-13 13:54:00 +0100 |
commit | 08066065e316682da10249b4edcc19b7d5226e59 (patch) | |
tree | 56cd6e0d9a9e720ff0e301cd98d3e5781f7b55db /recording.h | |
parent | a9bd3ca0dc06c9a6439f5e484e137fc6aa50b4bc (diff) | |
download | vdr-08066065e316682da10249b4edcc19b7d5226e59.tar.gz vdr-08066065e316682da10249b4edcc19b7d5226e59.tar.bz2 |
Fixed a crash when moving a recording to a folder on a different volume
Diffstat (limited to 'recording.h')
-rw-r--r-- | recording.h | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/recording.h b/recording.h index cebd2ee0..b649f6fd 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 4.3 2015/08/29 14:12:14 kls Exp $ + * $Id: recording.h 4.4 2016/12/13 13:12:12 kls Exp $ */ #ifndef __RECORDING_H @@ -302,16 +302,18 @@ DEF_LIST_LOCK2(Recordings, DeletedRecordings); class cRecordingsHandlerEntry; -class cRecordingsHandler { +class cRecordingsHandler : public cThread { private: cMutex mutex; cList<cRecordingsHandlerEntry> operations; bool finished; bool error; cRecordingsHandlerEntry *Get(const char *FileName); +protected: + virtual void Action(void); public: cRecordingsHandler(void); - ~cRecordingsHandler(); + virtual ~cRecordingsHandler(); bool Add(int Usage, const char *FileNameSrc, const char *FileNameDst = NULL); ///< Adds the given FileNameSrc to the recordings handler for (later) ///< processing. Usage can be either ruCut, ruMove or ruCopy. FileNameDst @@ -329,12 +331,6 @@ public: ///< Deletes/terminates all operations. int GetUsage(const char *FileName); ///< Returns the usage type for the given FileName. - bool Active(void); - ///< Checks whether there is currently any operation running and starts - ///> the next one form the list if the previous one has finished. - ///< This function must be called regularly to trigger switching to the - ///< next operation in the list. - ///< Returns true if there are any operations in the list. bool Finished(bool &Error); ///< Returns true if all operations in the list have been finished. ///< If there have been any errors, Errors will be set to true. |