summaryrefslogtreecommitdiff
path: root/recording.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2012-11-12 14:51:18 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2012-11-12 14:51:18 +0100
commitbc06fdf4149cc019ee95cbcc150f7627bb7c14b5 (patch)
treeaf3e3608e902c25ab705ad1274325790e56907ea /recording.c
parentb951ca48a5e4bb15c52465485ef48dd0fb537330 (diff)
downloadvdr-bc06fdf4149cc019ee95cbcc150f7627bb7c14b5.tar.gz
vdr-bc06fdf4149cc019ee95cbcc150f7627bb7c14b5.tar.bz2
The return type of cMarks::Add() has been changed to void
Diffstat (limited to 'recording.c')
-rw-r--r--recording.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/recording.c b/recording.c
index 2955cb34..79db1c74 100644
--- a/recording.c
+++ b/recording.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: recording.c 2.71 2012/11/12 14:48:12 kls Exp $
+ * $Id: recording.c 2.72 2012/11/12 14:51:09 kls Exp $
*/
#include "recording.h"
@@ -1423,14 +1423,10 @@ void cMarks::Sort(void)
}
}
-cMark *cMarks::Add(int Position)
+void cMarks::Add(int Position)
{
- cMark *m = Get(Position);
- if (!m) {
- cConfig<cMark>::Add(m = new cMark(Position, NULL, framesPerSecond));
- Sort();
- }
- return m;
+ cConfig<cMark>::Add(new cMark(Position, NULL, framesPerSecond));
+ Sort();
}
cMark *cMarks::Get(int Position)