[vlc-devel] Directory access module trapped

Enrique Osuna enrique.osuna at gmail.com
Tue Oct 9 21:00:16 CEST 2007

I went to follow up with this.  I checked and AStreamPrebufferStream doesn't
respond to p_access->b_eof.  Should it?  Or should directory.c just return a
0 (EOF marker) to tell AStreamPrebufferStream to go ahead and stop trying?


On 10/8/07, Laurent Aimar <fenrir at via.ecp.fr> wrote:
> 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
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20071009/45583ba1/attachment.html>

More information about the vlc-devel mailing list