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

Steve Lhomme robux4 at ycbcr.xyz
Fri Mar 27 14:24:39 CET 2020


LGTM

On 2020-03-27 14:17, Alexandre Janniaux wrote:
> ---
>   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();
>   
> -- 
> 2.26.0
> 
> _______________________________________________
> 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