[vlc-devel] [PATCH] access_output: udp: fix conversion from uint8_t* to const char*
Rémi Denis-Courmont
remi at remlab.net
Fri Mar 27 14:34:27 CET 2020
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/
More information about the vlc-devel
mailing list