[vdr] MP3-plugin problems with slow cpu

Stefan Huelswitt s.huelswitt at gmx.de
Mon Jul 25 17:56:13 CEST 2005


On 24 Jul 2005 Martin Cap <macap20001 at compuserve.de> wrote:

> Today I tried to set O_NONBLOCK to the open()-calls (the code does a 
> "do{ r = read(...); }while(r!=-1 && r != EINTR);" at stream.c:271 so 

I'll come back to the details later (rather busy lately).

The code actually is:

do { 
   r=read(fd,buffer+fill,MP3FILE_BUFSIZE-fill);
   } while(r==-1 && errno==EINTR);

The return code for a unsatisfied read request in non-blocking
mode is EAGAIN.

But normaly the plugin uses mmap() to read the file (if you
haven't disabled this by intent), so that the code part you
mentioned isn't used at all.

Regards.

-- 
Stefan Huelswitt
s.huelswitt at gmx.de  | http://www.muempf.de/



More information about the vdr mailing list