From 57f58a154654311fc70e478c0b36262da5c414c6 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Wed, 7 Mar 2012 14:39:38 +0100 Subject: Removed the obsolete function cEITScanner::UsesDevice(); added new parameter LiveView to cStatus::ChannelSwitch() --- PLUGINS/src/rcu/HISTORY | 4 ++++ PLUGINS/src/rcu/rcu.c | 10 +++++----- 2 files changed, 9 insertions(+), 5 deletions(-) (limited to 'PLUGINS/src') diff --git a/PLUGINS/src/rcu/HISTORY b/PLUGINS/src/rcu/HISTORY index 692f6208..87b9413e 100644 --- a/PLUGINS/src/rcu/HISTORY +++ b/PLUGINS/src/rcu/HISTORY @@ -4,3 +4,7 @@ VDR Plugin 'rcu' Revision History 2012-02-27: Version 0.0.1 - Initial revision. + +2012-03-07: Version 0.0.2 + +- Added new parameter LiveView to ChannelSwitch(). diff --git a/PLUGINS/src/rcu/rcu.c b/PLUGINS/src/rcu/rcu.c index f0abedde..79f46122 100644 --- a/PLUGINS/src/rcu/rcu.c +++ b/PLUGINS/src/rcu/rcu.c @@ -3,7 +3,7 @@ * * See the README file for copyright information and how to reach the author. * - * $Id: rcu.c 1.1 2012/02/27 11:49:51 kls Exp $ + * $Id: rcu.c 1.2 2012/03/07 14:22:44 kls Exp $ */ #include @@ -16,7 +16,7 @@ #include #include -static const char *VERSION = "0.0.1"; +static const char *VERSION = "0.0.2"; static const char *DESCRIPTION = "Remote Control Unit"; #define REPEATLIMIT 150 // ms @@ -44,7 +44,7 @@ private: void SetString(const char *s); bool DetectCode(unsigned char *Code); virtual void Action(void); - virtual void ChannelSwitch(const cDevice *Device, int ChannelNumber); + virtual void ChannelSwitch(const cDevice *Device, int ChannelNumber, bool LiveView); virtual void Recording(const cDevice *Device, const char *Name, const char *FileName, bool On); public: cRcuRemote(const char *DeviceName); @@ -353,9 +353,9 @@ bool cRcuRemote::DetectCode(unsigned char *Code) return false; } -void cRcuRemote::ChannelSwitch(const cDevice *Device, int ChannelNumber) +void cRcuRemote::ChannelSwitch(const cDevice *Device, int ChannelNumber, bool LiveView) { - if (ChannelNumber && Device->IsPrimaryDevice()) + if (ChannelNumber && LiveView) SetNumber(cDevice::CurrentChannel()); } -- cgit v1.2.3