Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] manual recording scan patch



Hi,

I noticed that vdr-1.3.12 waits for a change, by itself, in recordings
to update the list. I think it is better than scanning each time one
calls the list, but, at least for me, it is sometimes useful to force a
scan manually, i.e. when I change something by console (my VDR box is
not dedicated).

This little patch adds a red button function in setup:recordings menu to
make this work.

I hope it will be useful to someone else.

Thank you for your work

Antonino Sergi


--- menu.c.orig 2004-09-05 09:44:10.356365008 +0200
+++ menu.c      2004-09-05 10:10:42.306625856 +0200
@@ -2043,6 +2043,7 @@
 class cMenuSetupRecord : public cMenuSetupBase {
 public:
   cMenuSetupRecord(void);
+  virtual eOSState ProcessKey(eKeys Key);
   };

 cMenuSetupRecord::cMenuSetupRecord(void)
@@ -2064,6 +2065,18 @@
   Add(new cMenuEditBoolItem(tr("Setup.Recording$Record Dolby
Digital"),      &data.RecordDolbyDigital));
   Add(new cMenuEditIntItem( tr("Setup.Recording$Max. video file size
(MB)"), &data.MaxVideoFileSize, MINVIDEOFILE
SIZE, MAXVIDEOFILESIZE));
   Add(new cMenuEditBoolItem(tr("Setup.Recording$Split edited
files"),        &data.SplitEditedFiles));
+  SetHelp(tr("Scan"));
+}
+
+eOSState cMenuSetupRecord::ProcessKey(eKeys Key)
+{
+  eOSState state = cMenuSetupBase::ProcessKey(Key);
+
+  if (Key == kRed) {
+    Recordings.Load();
+    return osEnd;
+  }
+  return state;
 }

 // --- cMenuSetupReplay
------------------------------------------------------
-- 
Antonino Sergi <voyaser@tiscalinet.it>





Home | Main Index | Thread Index