summaryrefslogtreecommitdiff
path: root/myreplaycontrol.c
diff options
context:
space:
mode:
authorAndreas Mair <andreas@vdr-developer.org>2011-04-15 09:03:16 +0200
committerAndreas Mair <andreas@vdr-developer.org>2011-04-15 09:03:16 +0200
commit1db0647d868664cb4d296883a14519cdc6823aaf (patch)
tree958735f226ff65dfced3b300614ef93fb6b98cdc /myreplaycontrol.c
parente599ddd1095c0c60d119ba58038a0ef742bfe72f (diff)
downloadvdr-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
Diffstat (limited to 'myreplaycontrol.c')
-rw-r--r--myreplaycontrol.c14
1 files changed, 8 insertions, 6 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;
}