diff options
Diffstat (limited to 'PLUGINS/src/rcu')
-rw-r--r-- | PLUGINS/src/rcu/HISTORY | 4 | ||||
-rw-r--r-- | PLUGINS/src/rcu/rcu.c | 10 |
2 files changed, 9 insertions, 5 deletions
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 <getopt.h> @@ -16,7 +16,7 @@ #include <vdr/thread.h> #include <vdr/tools.h> -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()); } |