summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--HISTORY2
-rw-r--r--config.c5
2 files changed, 6 insertions, 1 deletions
diff --git a/HISTORY b/HISTORY
index 0e21efee..32fe99ee 100644
--- a/HISTORY
+++ b/HISTORY
@@ -7525,3 +7525,5 @@ Video Disk Recorder Revision History
Mair).
- Absolute jumps when replaying a recording (via the Red key) are now only performed
if an actual value has been entered (suggested by Ulf Kiener).
+- The last replayed recording is now stored in setup.conf, which allows the blue
+ "Resume" key in the main menu to work even after a restart of VDR.
diff --git a/config.c b/config.c
index af0fe3d5..8c7b9d1d 100644
--- a/config.c
+++ b/config.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: config.c 2.31 2012/12/06 09:00:23 kls Exp $
+ * $Id: config.c 2.32 2013/01/17 14:50:51 kls Exp $
*/
#include "config.h"
@@ -13,6 +13,7 @@
#include "device.h"
#include "i18n.h"
#include "interface.h"
+#include "menu.h"
#include "plugin.h"
#include "recording.h"
@@ -672,6 +673,7 @@ bool cSetup::Parse(const char *Name, const char *Value)
else if (!strcasecmp(Name, "ChannelsWrap")) ChannelsWrap = atoi(Value);
else if (!strcasecmp(Name, "ShowChannelNamesWithSource")) ShowChannelNamesWithSource = atoi(Value);
else if (!strcasecmp(Name, "EmergencyExit")) EmergencyExit = atoi(Value);
+ else if (!strcasecmp(Name, "LastReplayed")) cReplayControl::SetRecording(Value);
else
return false;
return true;
@@ -777,6 +779,7 @@ bool cSetup::Save(void)
Store("ChannelsWrap", ChannelsWrap);
Store("ShowChannelNamesWithSource", ShowChannelNamesWithSource);
Store("EmergencyExit", EmergencyExit);
+ Store("LastReplayed", cReplayControl::LastReplayed());
Sort();