From 8976ebcec5ca1ac03c54209b7cc12e9d14915c6b Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 4 Jan 2004 12:30:00 +0100 Subject: Implemented automatic PID switching and channel detection --- svdrp.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'svdrp.c') diff --git a/svdrp.c b/svdrp.c index 009f2f01..83847a0e 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.56 2003/12/21 13:37:10 kls Exp $ + * $Id: svdrp.c 1.57 2003/12/28 10:09:30 kls Exp $ */ #include "svdrp.h" @@ -476,7 +476,7 @@ void cSVDRP::CmdDELC(const char *Option) } Channels.Del(channel); Channels.ReNumber(); - Channels.Save(); + Channels.SetModified(); isyslog("channel %s deleted", Option); Reply(250, "Channel \"%s\" deleted", Option); } @@ -810,9 +810,8 @@ void cSVDRP::CmdMODC(const char *Option) if (Channels.HasUniqueChannelID(&ch, channel)) { *channel = ch; Channels.ReNumber(); - Channels.Save(); + Channels.SetModified(); isyslog("modifed channel %d %s", channel->Number(), channel->ToText()); - Timers.Save(); Reply(250, "%d %s", channel->Number(), channel->ToText()); } else @@ -886,7 +885,7 @@ void cSVDRP::CmdNEWC(const char *Option) *channel = ch; Channels.Add(channel); Channels.ReNumber(); - Channels.Save(); + Channels.SetModified(); isyslog("new channel %d %s", channel->Number(), channel->ToText()); Reply(250, "%d %s", channel->Number(), channel->ToText()); } -- cgit v1.2.3