From 3e58bc64fece489778cdd2dc3df24c9bdca28779 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Wed, 4 Sep 2002 17:26:02 +0200 Subject: Implemented recording and replaying with a single DVB card --- svdrp.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'svdrp.c') diff --git a/svdrp.c b/svdrp.c index 92365e72..c5a71cdb 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.40 2002/08/25 10:40:46 kls Exp $ + * $Id: svdrp.c 1.41 2002/09/04 10:49:42 kls Exp $ */ #include "svdrp.h" @@ -417,13 +417,9 @@ void cSVDRP::CmdCHAN(const char *Option) Reply(501, "Undefined channel \"%s\"", Option); return; } - if (Interface->Recording()) { - Reply(550, "Can't switch channel, interface is recording"); - return; - } cChannel *channel = Channels.GetByNumber(n); if (channel) { - if (!channel->Switch()) { + if (!cDevice::PrimaryDevice()->SwitchChannel(channel, true)) { Reply(554, "Error switching to channel \"%d\"", channel->number); return; } -- cgit v1.2.3