summaryrefslogtreecommitdiff
path: root/recording.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2011-08-13 12:45:42 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2011-08-13 12:45:42 +0200
commit30009067158bc40f50469cb82234b4013ef14e9e (patch)
treefc9a851816fe2fa5bd4e255cfb5158562302ed31 /recording.h
parentef611229f39c1792f045002906443622f63987f1 (diff)
downloadvdr-30009067158bc40f50469cb82234b4013ef14e9e.tar.gz
vdr-30009067158bc40f50469cb82234b4013ef14e9e.tar.bz2
The length (as number of frames) of a recording's index file can now be determined by a call to cIndexFile::GetLength()
Diffstat (limited to 'recording.h')
-rw-r--r--recording.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/recording.h b/recording.h
index 4498ae9b..3a0ad570 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.20 2011/08/13 09:52:25 kls Exp $
+ * $Id: recording.h 2.21 2011/08/13 12:36:54 kls Exp $
*/
#ifndef __RECORDING_H
@@ -260,6 +260,9 @@ public:
bool StoreResume(int Index) { return resumeFile.Save(Index); }
bool IsStillRecording(void);
void Delete(void);
+ static int GetLength(const char *FileName, bool IsPesRecording = false);
+ ///< Calculates the recording length (numer of frames) without actually reading the index file.
+ ///< Returns -1 in case of error.
};
class cFileName {