diff options
author | Andreas Mair <amair.sob@googlemail.com> | 2011-04-09 08:42:09 +0200 |
---|---|---|
committer | Andreas Mair <amair.sob@googlemail.com> | 2011-04-09 08:42:09 +0200 |
commit | 134fd2c9418a2b2c45e962edc259fdefdc54a0c7 (patch) | |
tree | 14e8c063d588683bc82c4138bcf82b5c03025f9c | |
parent | 9eed7b90edd64adc5ee87c62a3d46191b1067c9a (diff) | |
download | vdr-plugin-extrecmenu-134fd2c9418a2b2c45e962edc259fdefdc54a0c7.tar.gz vdr-plugin-extrecmenu-134fd2c9418a2b2c45e962edc259fdefdc54a0c7.tar.bz2 |
"Call plugin after playback" option only changes BACK/EXIT key, BLUE key always jumps to LiveTV (suggested by Brougs78 @vdr-portal.de)
-rw-r--r-- | myreplaycontrol.c | 12 | ||||
-rw-r--r-- | myreplaycontrol.h | 1 |
2 files changed, 9 insertions, 4 deletions
diff --git a/myreplaycontrol.c b/myreplaycontrol.c index 856ccf4..0e472ed 100644 --- a/myreplaycontrol.c +++ b/myreplaycontrol.c @@ -16,16 +16,19 @@ using namespace std; myReplayControl::myReplayControl() { timesearchactive=false; + lastState = osUnknown; } myReplayControl::~myReplayControl() { - if(mysetup.ReturnToPlugin) + if(lastState == osRecordings && mysetup.ReturnToPlugin) cRemote::CallPlugin("extrecmenu"); } eOSState myReplayControl::ProcessKey(eKeys Key) { + lastState = osUnknown; + if(Key!=kNone) { if(timesearchactive && mysetup.UseCutterQueue) @@ -69,10 +72,11 @@ eOSState myReplayControl::ProcessKey(eKeys Key) if(Key==kRed) timesearchactive=true; } - if(Key==kBack) - return osEnd; } } - return cReplayControl::ProcessKey(Key); + lastState = cReplayControl::ProcessKey(Key); + if(lastState == osRecordings && mysetup.ReturnToPlugin == 0) + lastState = osEnd; + return lastState; } diff --git a/myreplaycontrol.h b/myreplaycontrol.h index 85bc179..ae4a9c0 100644 --- a/myreplaycontrol.h +++ b/myreplaycontrol.h @@ -2,6 +2,7 @@ class myReplayControl:public cReplayControl { private: bool timesearchactive; + eOSState lastState; public: myReplayControl(); ~myReplayControl(); |