MP3-plugin problems with slow cpu

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

 



On 24 Jul 2005 Martin Cap <macap20001@xxxxxxxxxxxxx> 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@xxxxxx  | http://www.muempf.de/


[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux