[vlc-devel] In 2.1.x, how does access module report failure?
remi at remlab.net
Mon Dec 17 22:23:32 CET 2012
Le lundi 17 décembre 2012 23:15:18, Nick Briggs a écrit :
> In 2.0.x access modules, the Block or Seek methods could set
> p_access->b_die if they detected a fatal I/O error on the input stream.
> I see that in the git head (upcoming 2.1?) the b_die field has been
> removed, but looking at the code in src/input/stream.c I see no obvious
> way for a Block or Seek method to report failure. What's the expected
> way to handle this situation?
Uh? b_die was set by the core to indicate that it was terminating the input.
Even in VLC 1.1, I cannot see any plugin that writes to ->b_die.
Recoverable errors should be logged and fixed.
Non-recoverable errors should set ->info.b_eof.
More information about the vlc-devel