[vlc-devel] [PATCH] access_output: udp: fix conversion from uint8_t* to const char*

Alexandre Janniaux ajanni at videolabs.io
Fri Mar 27 14:43:03 CET 2020


I guess the issue on windows is that send doesn't take
a `const void*`:

https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-send

Regards,
--
Alexandre Janniaux
Videolabs

On Fri, Mar 27, 2020 at 03:34:27PM +0200, Rémi Denis-Courmont wrote:
> Le perjantaina 27. maaliskuuta 2020, 15.17.55 EET Alexandre Janniaux a écrit :
> > ---
> >  modules/access_output/udp.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/modules/access_output/udp.c b/modules/access_output/udp.c
> > index 6fe59bbbaa..705a54303c 100644
> > --- a/modules/access_output/udp.c
> > +++ b/modules/access_output/udp.c
> > @@ -393,7 +393,7 @@ static void* ThreadWrite( void *data )
> >              vlc_tick_wait( i_date );
> >              i_to_send = i_group;
> >          }
> > -        if ( send( p_sys->i_handle, p_pk->p_buffer, p_pk->i_buffer, 0 ) ==
> > -1 ) +        if ( send( p_sys->i_handle, (const char*)p_pk->p_buffer,
> > p_pk->i_buffer, 0 ) == -1 ) msg_Warn( p_access, "send error: %s",
> > vlc_strerror_c(errno) ); vlc_cleanup_pop();
>
> There is nothing to fix here. send takes a const void * just like write.
> -1
>
>
> --
> Rémi Denis-Courmont
> http://www.remlab.net/
>
>
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel


More information about the vlc-devel mailing list