summaryrefslogtreecommitdiff
path: root/svdrp.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2017-04-04 09:39:36 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2017-04-04 09:39:36 +0200
commit7170c20c7e8e63882415ea5d9569dc1eea200676 (patch)
treeeb37fc6d20c76a40bc6305d6c3870ae1dde37b86 /svdrp.c
parent7e6667f58fffac512c745c530a99539a028509f6 (diff)
downloadvdr-7170c20c7e8e63882415ea5d9569dc1eea200676.tar.gz
vdr-7170c20c7e8e63882415ea5d9569dc1eea200676.tar.bz2
Added missing GetById() calls
Diffstat (limited to 'svdrp.c')
-rw-r--r--svdrp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/svdrp.c b/svdrp.c
index 6e95d3f1..fbecc507 100644
--- a/svdrp.c
+++ b/svdrp.c
@@ -10,7 +10,7 @@
* and interact with the Video Disk Recorder - or write a full featured
* graphical interface that sits on top of an SVDRP connection.
*
- * $Id: svdrp.c 4.13 2017/04/03 14:31:13 kls Exp $
+ * $Id: svdrp.c 4.14 2017/04/04 09:39:36 kls Exp $
*/
#include "svdrp.h"
@@ -1336,7 +1336,7 @@ void cSVDRPServer::CmdEDIT(const char *Option)
if (*Option) {
if (isnumber(Option)) {
LOCK_RECORDINGS_READ;
- if (const cRecording *Recording = Recordings->Get(strtol(Option, NULL, 10) - 1)) {
+ if (const cRecording *Recording = Recordings->GetById(strtol(Option, NULL, 10))) {
cMarks Marks;
if (Marks.Load(Recording->FileName(), Recording->FramesPerSecond(), Recording->IsPesRecording()) && Marks.Count()) {
if (RecordingsHandler.Add(ruCut, Recording->FileName()))
@@ -2058,7 +2058,7 @@ void cSVDRPServer::CmdPLAY(const char *Option)
*option = 0;
if (isnumber(num)) {
LOCK_RECORDINGS_READ;
- if (const cRecording *Recording = Recordings->Get(strtol(num, NULL, 10) - 1)) {
+ if (const cRecording *Recording = Recordings->GetById(strtol(num, NULL, 10))) {
if (c)
option = skipspace(++option);
cReplayControl::SetRecording(NULL);