summaryrefslogtreecommitdiff
path: root/recording.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2011-08-21 13:47:07 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2011-08-21 13:47:07 +0200
commitdac837d38d4a84d785fc11da7e276ffcc22ec331 (patch)
tree2a5a9e827536799f8efe40bede9b429c2106f543 /recording.h
parent97ad2fa95df2f03e4c1dff9d4ff2d5abcaad42d8 (diff)
downloadvdr-dac837d38d4a84d785fc11da7e276ffcc22ec331.tar.gz
vdr-dac837d38d4a84d785fc11da7e276ffcc22ec331.tar.bz2
Implemented cRecording::NumFrames() and cRecording::LengthInSeconds()
Diffstat (limited to 'recording.h')
-rw-r--r--recording.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/recording.h b/recording.h
index 26223e69..37979ec6 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.24 2011/08/21 11:34:03 kls Exp $
+ * $Id: recording.h 2.25 2011/08/21 13:10:39 kls Exp $
*/
#ifndef __RECORDING_H
@@ -89,6 +89,7 @@ private:
mutable char *fileName;
mutable char *name;
mutable int fileSizeMB;
+ mutable int numFrames;
int channel;
int instanceId;
bool isPesRecording;
@@ -123,6 +124,11 @@ public:
int HierarchyLevels(void) const;
void ResetResume(void) const;
double FramesPerSecond(void) const { return framesPerSecond; }
+ int NumFrames(void) const;
+ ///< Returns the number of frames in this recording.
+ ///< If the number of frames is unknown, -1 will be returned.
+ int LengthInSeconds(void) const;
+ ///< Returns the length (in seconds) of this recording, or -1 in case of error.
bool IsNew(void) const { return GetResume() <= 0; }
bool IsEdited(void) const;
bool IsPesRecording(void) const { return isPesRecording; }