Mailing List archive

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

[vdr] Re: System freeze - scanning recordings ...



Am Mittwoch, 17. September 2003 21:56 schrieben Sie:

> You might want to put a few debug lines into cRecordings::Load()
> (in VDR/recording.c) to see how far it gets or where it gets stuck.

printf's are the debug-lines, as you may guess ;) ... Nothing was written on 
the console (switched to a text-console) ... did I misunderstood something or 
was that what you suggested?

btw: I upgraded to 1.2.5 and dvb-20030917 ... still the same


---CUT HERE---CUT HERE---CODE HERE---CUT HERE---


// --- cRecordings -----------------------------------------------------------

bool cRecordings::Load(bool Deleted)
{
  printf("Entering cRecordings::Load");
  Clear();
  bool result = false;
  char *cmd = NULL;
  asprintf(&cmd, FINDCMD, VideoDirectory, Deleted ? "*" DELEXT : "*" RECEXT);
  FILE *p = popen(cmd, "r");
  printf("Got Filepointer");
  if (p) {
     printf("in if");
     char *s;
     while ((s = readline(p)) != NULL) {
           printf("in while");
           cRecording *r = new cRecording(s);
           if (r->Name())
              Add(r);
           else
              delete r;
           }
     pclose(p);
     Sort();
     result = Count() > 0;
     }
  else
     Interface->Error("Error while opening pipe!");
  free(cmd);
  printf("before end");
  return result;
}


-- 
Viele Grüße
Thorsten 



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



Home | Main Index | Thread Index