diff options
Diffstat (limited to 'myreplaycontrol.c')
-rw-r--r-- | myreplaycontrol.c | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/myreplaycontrol.c b/myreplaycontrol.c index bdfb123..5305746 100644 --- a/myreplaycontrol.c +++ b/myreplaycontrol.c @@ -4,18 +4,35 @@ #include <vdr/interface.h> #include <vdr/status.h> +#include <vdr/menu.h> #include "myreplaycontrol.h" #include "mymenusetup.h" +using namespace std; + +char *myReplayControl::Cut=NULL; +char *myReplayControl::Cutted=NULL; + myReplayControl::~myReplayControl() { - cRemote::CallPlugin("extrecmenu"); + if(mysetup.ReturnToPlugin) + cRemote::CallPlugin("extrecmenu"); } eOSState myReplayControl::ProcessKey(eKeys Key) { - if(Key==kBack) - return osEnd; + if(Key==kBack) + return osEnd; + + if(Key==kEditCut) + { + free(Cut); + Cut=strdup(LastReplayed()); - return cReplayControl::ProcessKey(Key); + cRecording recording(LastReplayed()); + free(Cutted); + Cutted=strdup(recording.PrefixFileName('%')); + } + + return cReplayControl::ProcessKey(Key); } |