[vlc-devel] [PATCH] Added support for VDR recordings.

Rémi Denis-Courmont remi at remlab.net
Tue Apr 13 21:55:37 CEST 2010


Le mardi 13 avril 2010 21:16:15 Tobias Güntner, vous avez écrit :
> Am 13.04.2010 18:37, schrieb Rémi Denis-Courmont:
> >>> Why EAGAIN ?
> >>
> >> In case VDR is still recording ...
> >
> > Then read() return 0 and not set any error.
> 
> Because of O_NONBLOCK then? I tried to read files the same way file.c does.

Did you enable non-blocking mode? That makes no sense as you're explicitly 
checking that the files are regular. Non-blocking mode has no effect on 
regular files (see POSIX).

-- 
Rémi Denis-Courmont
http://www.remlab.net/
http://fi.linkedin.com/in/remidenis



More information about the vlc-devel mailing list