[vlc-devel] [PATCH] Allow 'no data available yet' for imem callback
remi at remlab.net
Wed Oct 4 17:56:04 CEST 2017
Le keskiviikkona 4. lokakuuta 2017, 18.40.01 EEST Nir Halay a écrit :
> Allow 'no data available yet' return value (-1) for 'imem-read' callback.
> This fix allows more natural call to 'vlc_stream_ReadPartial' that does not
> suppose to wait for data. Docs updated as well.
How to return an error with this? Mixing end-of-stream with error is a design
BUG in the internal API, that I would rather not propagate further.
Also the documentation is lacking, and the proposed API is rather quirky. You
can't simply return -1 until data becomes available, as it would cause a live
More information about the vlc-devel