diff options
Diffstat (limited to 'svdrp.c')
-rw-r--r-- | svdrp.c | 8 |
1 files changed, 2 insertions, 6 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 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; } |