diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2016-12-08 10:48:53 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2016-12-08 10:48:53 +0100 |
commit | d6c26af6968fc18710d4575c48ef1da6f348c743 (patch) | |
tree | 9c29fcbe7a10246c1fa6383443c019bcd599f96c /svdrp.c | |
parent | 12308b3c29c89c077b456558507af7d77495344d (diff) | |
download | vdr-d6c26af6968fc18710d4575c48ef1da6f348c743.tar.gz vdr-d6c26af6968fc18710d4575c48ef1da6f348c743.tar.bz2 |
Using SetCurrentChannel(int ChannelNumber) instead of the deprecated SetCurrentChannel(const cChannel *Channel)
Diffstat (limited to 'svdrp.c')
-rw-r--r-- | svdrp.c | 6 |
1 files changed, 3 insertions, 3 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.10 2016/12/08 09:51:02 kls Exp $ + * $Id: svdrp.c 4.11 2016/12/08 10:48:53 kls Exp $ */ #include "svdrp.h" @@ -1244,7 +1244,7 @@ void cSVDRPServer::CmdDELC(const char *Option) if (!cDevice::PrimaryDevice()->Replaying() || cDevice::PrimaryDevice()->Transferring()) Channels->SwitchTo(CurrentChannel->Number()); else - cDevice::SetCurrentChannel(CurrentChannel); + cDevice::SetCurrentChannel(CurrentChannel->Number()); } Reply(250, "Channel \"%s\" deleted", Option); } @@ -1903,7 +1903,7 @@ void cSVDRPServer::CmdMOVC(const char *Option) if (!cDevice::PrimaryDevice()->Replaying() || cDevice::PrimaryDevice()->Transferring()) Channels->SwitchTo(CurrentChannel->Number()); else - cDevice::SetCurrentChannel(CurrentChannel); + cDevice::SetCurrentChannel(CurrentChannel->Number()); } isyslog("SVDRP < %s channel %d moved to %d", *connection, FromNumber, ToNumber); Reply(250,"Channel \"%d\" moved to \"%d\"", From, To); |