[vlc-devel] Directory access module trapped

Laurent Aimar fenrir at via.ecp.fr
Mon Oct 8 20:57:55 CEST 2007


On Fri, Oct 05, 2007, Enrique Osuna wrote:
> modules/access/directory.c reports that the "unable to find item in
> playlist" and returns VLC_ENOOBJECT to AReadStream.  AReadStream
> returns this value back to AStreamPrebufferStream and it's treated as
> if no data is available, so AStreamPrebufferStream waits
> STREAM_DATA_WAIT and tries again.
 When an access return an error, stream_t will handle it as a transitory
error and never as a fatal one (that's why it will retry a bit latter).

 The best way for now, is that on fatal error you just act like an EOF
(as you won't return anymore data)
 I am not sure but I think you can continue to return a negative value as
long as you set p_access->info.b_eof to true to warn stream that you will
never recover from that error.

-- 
fenrir



More information about the vlc-devel mailing list