summaryrefslogtreecommitdiff
path: root/svdrp.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2018-02-13 09:33:41 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2018-02-13 09:33:41 +0100
commit3090d8146fb9cbd2267f97e604bc3c376325686a (patch)
tree33d063b1c0bfda84ed5f0ceb8b92b2a500b554f9 /svdrp.c
parent78831a72d540444a3c2dc733d1c563c9f0788810 (diff)
downloadvdr-3090d8146fb9cbd2267f97e604bc3c376325686a.tar.gz
vdr-3090d8146fb9cbd2267f97e604bc3c376325686a.tar.bz2
Implemented storing timer id in .timer
Diffstat (limited to 'svdrp.c')
-rw-r--r--svdrp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/svdrp.c b/svdrp.c
index c3cc7527..93a7de4d 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.24 2018/02/05 14:52:27 kls Exp $
+ * $Id: svdrp.c 4.25 2018/02/13 09:23:11 kls Exp $
*/
#include "svdrp.h"
@@ -1334,8 +1334,10 @@ void cSVDRPServer::CmdDELT(const char *Option)
LOCK_TIMERS_WRITE;
Timers->SetExplicitModify();
if (cTimer *Timer = Timers->GetById(strtol(Option, NULL, 10))) {
- if (Timer->Recording())
+ if (Timer->Recording()) {
Timer->Skip();
+ cRecordControls::Process(Timers, time(NULL));
+ }
Timers->Del(Timer);
Timers->SetModified();
isyslog("SVDRP < %s deleted timer %s", *connection, *Timer->ToDescr());