diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2015-01-17 15:03:01 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2015-01-17 15:03:01 +0100 |
commit | 0c2316b638020f4087a664525f9ce7004d506488 (patch) | |
tree | 350d8a043bc05e2ef0aebc054dfbd64b9f7583b2 /recording.h | |
parent | f42cbac2375bfa320f9acdf87f80bc2fd70fed36 (diff) | |
download | vdr-0c2316b638020f4087a664525f9ce7004d506488.tar.gz vdr-0c2316b638020f4087a664525f9ce7004d506488.tar.bz2 |
Added the new command line option --updindex
Diffstat (limited to 'recording.h')
-rw-r--r-- | recording.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/recording.h b/recording.h index 7d5228eb..c9e950b3 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 3.4 2014/01/01 12:45:18 kls Exp $ + * $Id: recording.h 3.5 2015/01/17 14:33:05 kls Exp $ */ #ifndef __RECORDING_H @@ -429,7 +429,7 @@ private: void ConvertToPes(tIndexTs *IndexTs, int Count); bool CatchUp(int Index = -1); public: - cIndexFile(const char *FileName, bool Record, bool IsPesRecording = false, bool PauseLive = false); + cIndexFile(const char *FileName, bool Record, bool IsPesRecording = false, bool PauseLive = false, bool Update = false); ~cIndexFile(); bool Ok(void) { return index != NULL; } bool Write(bool Independent, uint16_t FileNumber, off_t FileOffset); @@ -488,7 +488,11 @@ char *ExchangeChars(char *s, bool ToFileSystem); // be modified and may be reallocated if more space is needed. The return // value points to the resulting string, which may be different from s. -bool GenerateIndex(const char *FileName); +bool GenerateIndex(const char *FileName, bool Update = false); + ///< Generates the index of the existing recording with the given FileName. + ///< If Update is true, an existing index file will be checked whether it is + ///< complete, and will be updated if it isn't. Otherwise an existing index + ///< file will be removed before a new one is generated. enum eRecordingsSortMode { rsmName, rsmTime }; extern eRecordingsSortMode RecordingsSortMode; |