diff options
author | Andreas Mair <andreas@vdr-developer.org> | 2011-04-15 09:03:16 +0200 |
---|---|---|
committer | Andreas Mair <andreas@vdr-developer.org> | 2011-04-15 09:03:16 +0200 |
commit | 1db0647d868664cb4d296883a14519cdc6823aaf (patch) | |
tree | 958735f226ff65dfced3b300614ef93fb6b98cdc | |
parent | e599ddd1095c0c60d119ba58038a0ef742bfe72f (diff) | |
download | vdr-plugin-extrecmenu-1.2.1.tar.gz vdr-plugin-extrecmenu-1.2.1.tar.bz2 |
"Call plugin after playback" option now is used also if a recording has been watch to its end.v1.2.1
-rw-r--r-- | myreplaycontrol.c | 14 | ||||
-rw-r--r-- | myreplaycontrol.h | 2 |
2 files changed, 9 insertions, 7 deletions
diff --git a/myreplaycontrol.c b/myreplaycontrol.c index 0e472ed..dcef55d 100644 --- a/myreplaycontrol.c +++ b/myreplaycontrol.c @@ -16,19 +16,17 @@ using namespace std; myReplayControl::myReplayControl() { timesearchactive=false; - lastState = osUnknown; + fCallPlugin = mysetup.ReturnToPlugin; } myReplayControl::~myReplayControl() { - if(lastState == osRecordings && mysetup.ReturnToPlugin) + if(fCallPlugin) cRemote::CallPlugin("extrecmenu"); } eOSState myReplayControl::ProcessKey(eKeys Key) { - lastState = osUnknown; - if(Key!=kNone) { if(timesearchactive && mysetup.UseCutterQueue) @@ -75,8 +73,12 @@ eOSState myReplayControl::ProcessKey(eKeys Key) } } - lastState = cReplayControl::ProcessKey(Key); - if(lastState == osRecordings && mysetup.ReturnToPlugin == 0) + eOSState lastState = cReplayControl::ProcessKey(Key); + if(lastState == osRecordings) lastState = osEnd; + if(lastState == osEnd && mysetup.ReturnToPlugin) + fCallPlugin = true; + if(Key==kBlue) + fCallPlugin = false; return lastState; } diff --git a/myreplaycontrol.h b/myreplaycontrol.h index ae4a9c0..f28a67f 100644 --- a/myreplaycontrol.h +++ b/myreplaycontrol.h @@ -2,7 +2,7 @@ class myReplayControl:public cReplayControl { private: bool timesearchactive; - eOSState lastState; + bool fCallPlugin; public: myReplayControl(); ~myReplayControl(); |