From cca2cd35ad7ef20ae7d124e06d05e896c4d8f9b6 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 18 Nov 2012 12:19:51 +0100 Subject: Improved editing TS recordings --- recording.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'recording.h') diff --git a/recording.h b/recording.h index 7118e783..9ae9b1ec 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.39 2012/11/12 14:51:09 kls Exp $ + * $Id: recording.h 2.40 2012/11/13 11:43:59 kls Exp $ */ #ifndef __RECORDING_H @@ -238,6 +238,19 @@ public: cMark *Get(int Position); cMark *GetPrev(int Position); cMark *GetNext(int Position); + cMark *GetNextBegin(cMark *EndMark = NULL); + ///< Returns the next "begin" mark after EndMark, skipping any marks at the + ///< same position as EndMark. If EndMark is NULL, the first actual "begin" + ///< will be returned (if any). + cMark *GetNextEnd(cMark *BeginMark); + ///< Returns the next "end" mark after BeginMark, skipping any marks at the + ///< same position as BeginMark. + int GetNumSequences(void); + ///< Returns the actual number of sequences to be cut from the recording. + ///< If there is only one actual "begin" mark, and it is positioned at index + ///< 0 (the beginning of the recording), and there is no "end" mark, the + ///< return value is 0, which means that the result is the same as the original + ///< recording. }; #define RUC_BEFORERECORDING "before" -- cgit v1.2.3