diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2001-02-11 11:04:41 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2001-02-11 11:04:41 +0100 |
commit | 535e755278ef51b923a71299204ec86da4229d02 (patch) | |
tree | ae4a8678bb0d9c83d4be44e39ee43070f1e97aa7 /menu.c | |
parent | 7a92a259546000c367042e4c901fc4789f2225cb (diff) | |
download | vdr-535e755278ef51b923a71299204ec86da4229d02.tar.gz vdr-535e755278ef51b923a71299204ec86da4229d02.tar.bz2 |
Implemented 'Rewind' in the 'Recordings' menu
Diffstat (limited to 'menu.c')
-rw-r--r-- | menu.c | 17 |
1 files changed, 15 insertions, 2 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: menu.c 1.64 2001/02/10 15:34:35 kls Exp $ + * $Id: menu.c 1.65 2001/02/11 11:01:47 kls Exp $ */ #include "menu.h" @@ -1497,7 +1497,7 @@ cMenuRecordings::cMenuRecordings(void) recording = Recordings.Next(recording); } } - SetHelp(tr("Play"), NULL, tr("Delete"), tr("Summary")); + SetHelp(tr("Play"), tr("Rewind"), tr("Delete"), tr("Summary")); Display(); } @@ -1511,6 +1511,18 @@ eOSState cMenuRecordings::Play(void) return osContinue; } +eOSState cMenuRecordings::Rewind(void) +{ + cMenuRecordingItem *ri = (cMenuRecordingItem *)Get(Current()); + if (ri) { + cDvbApi::PrimaryDvbApi->StopReplay(); // must do this first to be able to rewind the currently replayed recording + cResumeFile ResumeFile(ri->recording->FileName()); + ResumeFile.Delete(); + return Play(); + } + return osContinue; +} + eOSState cMenuRecordings::Del(void) { cMenuRecordingItem *ri = (cMenuRecordingItem *)Get(Current()); @@ -1551,6 +1563,7 @@ eOSState cMenuRecordings::ProcessKey(eKeys Key) switch (Key) { case kOk: case kRed: return Play(); + case kGreen: return Rewind(); case kYellow: return Del(); case kBlue: return Summary(); case kMenu: return osEnd; |