summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2015-01-31 13:37:02 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2015-01-31 13:37:02 +0100
commitebab5f3ec126326ee9ab3c24b362abf0ed0cffca (patch)
treeadacf8c63de85ccaf644f1b7330ff87b23deb04b
parent6749e4ead9d394c9d86591366a2b49f46c4a3af9 (diff)
downloadvdr-ebab5f3ec126326ee9ab3c24b362abf0ed0cffca.tar.gz
vdr-ebab5f3ec126326ee9ab3c24b362abf0ed0cffca.tar.bz2
Made cRecording::GetResume() public
-rw-r--r--CONTRIBUTORS1
-rw-r--r--HISTORY1
-rw-r--r--recording.h6
3 files changed, 6 insertions, 2 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index 7df7d6e3..d0307712 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -3237,6 +3237,7 @@ Stefan Braun <louis.braun@gmx.de>
for reporting an endless loop in the DrawEllipse() functions for very small ellipses
for suggesting to add the menu category mcRecordingEdit for marking menus that edit
recording properties
+ for suggesting to make cRecording::GetResume() public
Jochen Dolze <vdr@dolze.de>
for changing cThread::SetIOPriority() from "best effort class" to "idle class" in order
diff --git a/HISTORY b/HISTORY
index 92d140c3..966e30e1 100644
--- a/HISTORY
+++ b/HISTORY
@@ -8448,3 +8448,4 @@ Video Disk Recorder Revision History
- Updated the Estonian OSD texts (thanks to Arthur Konovalov).
- Added ARGSDIR to the ONEDIR section of Make.config.template (suggested by Derek
Kelly).
+- Made cRecording::GetResume() public (suggested by Stefan Braun).
diff --git a/recording.h b/recording.h
index c9e950b3..1079ae1f 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.5 2015/01/17 14:33:05 kls Exp $
+ * $Id: recording.h 3.6 2015/01/31 13:34:44 kls Exp $
*/
#ifndef __RECORDING_H
@@ -117,7 +117,6 @@ private:
static char *StripEpisodeName(char *s, bool Strip);
char *SortName(void) const;
void ClearSortName(void);
- int GetResume(void) const;
time_t start;
int priority;
int lifetime;
@@ -160,6 +159,9 @@ public:
int FileSizeMB(void) const;
///< Returns the total file size of this recording (in MB), or -1 if the file
///< size is unknown.
+ int GetResume(void) const;
+ ///< Returns the index of the frame where replay of this recording shall
+ ///< be resumed, or -1 in case of an error.
bool IsNew(void) const { return GetResume() <= 0; }
bool IsEdited(void) const;
bool IsPesRecording(void) const { return isPesRecording; }