summaryrefslogtreecommitdiff
path: root/vdr.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-05-26 10:20:31 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2005-05-26 10:20:31 +0200
commite3e40a14f30941586536426231a824519cade6ac (patch)
treea04f00b813f9c15cbf18002f8a9a851e0db59c96 /vdr.c
parentdc0209147ea0fd0d94e8e870a0da0bb914ed1920 (diff)
downloadvdr-e3e40a14f30941586536426231a824519cade6ac.tar.gz
vdr-e3e40a14f30941586536426231a824519cade6ac.tar.bz2
Pressing the "Play" key in live viewing mode now resumes a previous replay session
Diffstat (limited to 'vdr.c')
-rw-r--r--vdr.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/vdr.c b/vdr.c
index fe4c2ca2..fcf21532 100644
--- a/vdr.c
+++ b/vdr.c
@@ -22,7 +22,7 @@
*
* The project's page is at http://www.cadsoft.de/vdr
*
- * $Id: vdr.c 1.204 2005/05/22 11:20:22 kls Exp $
+ * $Id: vdr.c 1.205 2005/05/26 10:04:58 kls Exp $
*/
#include <getopt.h>
@@ -846,6 +846,14 @@ int main(int argc, char *argv[])
break;
// Viewing Control:
case kOk: LastChannel = -1; break; // forces channel display
+ // Instant resume of the last viewed recording:
+ case kPlay:
+ if (cReplayControl::LastReplayed()) {
+ cControl::Shutdown();
+ Temp = NULL;
+ cControl::Launch(new cReplayControl);
+ }
+ break;
// Key macros:
case kRed:
case kGreen: