summaryrefslogtreecommitdiff
path: root/svdrp.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2004-06-13 20:26:51 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2004-06-13 20:26:51 +0200
commit5ed57fa1c5c2e33c218e60d906dc8e8163f50c16 (patch)
treeffbc38cfa37e76b14523d1001fe15dac6fe08923 /svdrp.c
parent1369239b53ee23fa1f790c67649facb4f8e547ff (diff)
downloadvdr-5ed57fa1c5c2e33c218e60d906dc8e8163f50c16.tar.gz
vdr-5ed57fa1c5c2e33c218e60d906dc8e8163f50c16.tar.bz2
The list of recordings is now kept statically in memory
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 63126f51..87f146e5 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 1.62 2004/03/25 17:00:23 kls Exp $
+ * $Id: svdrp.c 1.63 2004/06/13 13:38:38 kls Exp $
*/
#include "svdrp.h"
@@ -504,8 +504,10 @@ void cSVDRP::CmdDELR(const char *Option)
if (isnumber(Option)) {
cRecording *recording = Recordings.Get(strtol(Option, NULL, 10) - 1);
if (recording) {
- if (recording->Delete())
+ if (recording->Delete()) {
Reply(250, "Recording \"%s\" deleted", Option);
+ ::Recordings.Load(); // must make sure the global recordings list is updated
+ }
else
Reply(554, "Error while deleting recording!");
}