diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2018-02-13 09:33:41 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2018-02-13 09:33:41 +0100 |
commit | 3090d8146fb9cbd2267f97e604bc3c376325686a (patch) | |
tree | 33d063b1c0bfda84ed5f0ceb8b92b2a500b554f9 /svdrp.c | |
parent | 78831a72d540444a3c2dc733d1c563c9f0788810 (diff) | |
download | vdr-3090d8146fb9cbd2267f97e604bc3c376325686a.tar.gz vdr-3090d8146fb9cbd2267f97e604bc3c376325686a.tar.bz2 |
Implemented storing timer id in .timer
Diffstat (limited to 'svdrp.c')
-rw-r--r-- | svdrp.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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()); |