Mailing List archive

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

[vdr] Re: VDR developer version 1.3.2



  Hi Klaus,

  I made this FINDCMD patch for 1.2.6 but still for 1.3.2 it would make a
big difference on recordings menu speed.  I understand the recording
database is going to change but this fix is not too big and until then it
really is necessary with big archives.  I have been using the patch in
production for a month now.

  Could you consider including it in future dev releases?  Thanks!

Regards,
Jaakko

--- old/vdr-1.3.2/recording.c	Sat Nov  8 17:25:35 2003
+++ vdr-1.3.2/recording.c	Mon Jan 19 01:30:40 2004
@@ -46,7 +46,7 @@
 #define SUMMARYFILESUFFIX "/summary.vdr"
 #define MARKSFILESUFFIX   "/marks.vdr"

-#define FINDCMD      "cd '%s' && find '%s' -follow -type d -name '%s' 2> /dev/null"
+#define FINDCMD      "cd '%s' && find '%s' -follow -type d -name '%s' -print -prune -o -follow -type d -name '%s' -prune 2> /dev/null"

 #define MINDISKSPACE 1024 // MB

@@ -621,7 +621,7 @@
   Clear();
   bool result = false;
   char *cmd = NULL;
-  asprintf(&cmd, FINDCMD, VideoDirectory, VideoDirectory, Deleted ? "*" DELEXT : "*" RECEXT);
+  asprintf(&cmd, FINDCMD, VideoDirectory, VideoDirectory, Deleted ? "*" DELEXT : "*" RECEXT, Deleted ? "*" RECEXT : "*" DELEXT);
   FILE *p = popen(cmd, "r");
   if (p) {
      char *s;

-- 
Foreca Ltd                                           Jaakko.Hyvatti@foreca.com
Pursimiehenkatu 29-31 B, FIN-00150 Helsinki, Finland     http://www.foreca.com


-- 
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe vdr" as subject.



Home | Main Index | Thread Index