[vlc-devel] [PATCH] network: io: check virtual sockets own buffers (fix #8972)

Rémi Denis-Courmont remi at remlab.net
Mon Jul 15 23:13:45 CEST 2013


On Monday 15 July 2013 18:14:22 Francois Cartegnie wrote:
> ---
>  include/vlc_network.h |  1 +
>  modules/misc/gnutls.c |  9 +++++++++
>  src/network/io.c      | 10 ++++++++++
>  3 files changed, 20 insertions(+)
> 
> diff --git a/include/vlc_network.h b/include/vlc_network.h
> index 699e8af..cf16e7d 100644
> --- a/include/vlc_network.h
> +++ b/include/vlc_network.h
> @@ -140,6 +140,7 @@ VLC_API int net_SetCSCov( int fd, int sendcov, int
> recvcov ); struct virtual_socket_t
>  {
>      void *p_sys;
> +    int (*pf_recv_pending) ( void * );
>      int (*pf_recv) ( void *, void *, size_t );
>      int (*pf_send) ( void *, const void *, size_t );

There should not be any need for a new callback. This is just a bug in 
net_Read().

-- 
Rémi Denis-Courmont
http://www.remlab.net/




More information about the vlc-devel mailing list