[vlc-devel] [PATCH] Allow 'no data available yet' for imem callback

Rémi Denis-Courmont remi at remlab.net
Sun Oct 8 11:33:49 CEST 2017


Le keskiviikkona 4. lokakuuta 2017, 19.11.59 EEST ניר הלאי a écrit :
> Hello Remi,
> Please see the documentation of 'pf_read' in 'stream_t' structure.
> (include/vlc_stream.h):
> 
> \retval -1 no data available yet
> \retval 0 end of stream (incl. fatal error)
> \retval positive number of bytes read (no more than len)
> 
> This means that return value '0' is end of stream or error.
> 
> Furthermore, the implamentation of 'vlc_stream_Read' (src/input/stream.c)
> already waits for other value than '-1'.
> Waiting for data inside the callback is redundant.

I am aware of that documentation, since I wrote it. I think you are missing 
the point.

-- 
雷米‧德尼-库尔蒙
https://www.remlab.net/



More information about the vlc-devel mailing list