[vdr] A way to force writing the epg.data ?

Olaf Titz olaf at bigred.inka.de
Sun Dec 11 19:52:32 CET 2005


> > Great, I have to look on how to apply such a patch against vdr-1.3.37.
>
> A grep for epg.data should quickly unravel where VDR looks if the 10
> minutes are over.

This one should work:

--- vdr-1.3.37/epg.c~        2005-11-11 14:37:43.000000000 +0100
+++ vdr-1.3.37/epg.c    2005-12-09 20:54:31.000000000 +0100
@@ -882,6 +882,12 @@
      lastCleanup = now;
      ReportEpgBugFixStats(true);
      }
+  struct stat st;
+  if (!epgDataFileName || stat (epgDataFileName,&st) != 0) {
+     lastDump = 0;
+  } else {
+     lastDump = st.st_mtime;
+  }
   if (epgDataFileName && now - lastDump > 600) {
      cSafeFile f(epgDataFileName);
      if (f.Open()) {

=== end of patch ===

Olaf




More information about the vdr mailing list