[vdr] MP3-plugin problems with slow cpu

Martin Cap macap20001 at compuserve.de
Mon Jul 25 18:18:00 CEST 2005


Stefan Huelswitt wrote:
> On 24 Jul 2005 Martin Cap <macap20001 at compuserve.de> wrote:
> 
> 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.
> 

Exactly.

> 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.

Hu ! I haven't changed anything the first time I compiled and ran the 
plugin and it did not work then. How could this happen ?
I will have to check this first.
Thanks for your help so far and I'll get back to this later this evening.


-- 
---
Regards,
Martin Cap




More information about the vdr mailing list