[vlc-devel] [PATCH] GSoC: MTP Devices initial release

Laurent Aimar fenrir at via.ecp.fr
Wed Jan 28 09:39:23 CET 2009


Hi,

On Tue, Jan 27, 2009, Rémi Denis-Courmont wrote:
> On Tue, 27 Jan 2009 09:56:12 +0100, Laurent Aimar <fenrir at via.ecp.fr>
> wrote:
> >> +    /* Update default_pts to a suitable value for file access */
> >> +    var_Create( p_access, "file-caching",
> > VLC_VAR_INTEGER|VLC_VAR_DOINHERIT );
> >  I think "mtp-caching" was meant here.
> 
> Maybe not. It's reading a regular file, so why create yet another caching
> parameter?
 I agree with that point but I dislike the fact that the configuration of one
module depends on the one of another.
 Well, maybe it is acceptable.

> >> +        /* Delay a bit to avoid consuming all the CPU. This is
> > particularly
> >> +         * useful when reading from an unconnected FIFO. */
> >> +        msleep( INPUT_ERROR_SLEEP );
> >  I think a poll() could be used here or maybe net_Read (like file.c) as
> > you used O_NONBLOCK
> 
> There is no such thing as non-blocking I/O for _regular_ files.
> Specifically, "Regular files shall always poll TRUE for reading and
> writing."
 Thanks for the info.

-- 
fenrir



More information about the vlc-devel mailing list