Commit e376e049 authored by Thomas Guillem's avatar Thomas Guillem

chromecast: reset httpd args in case of error

parent 8c4ebcd8
......@@ -190,13 +190,14 @@ int intf_sys_t::httpd_file_fill( uint8_t *psz_request, uint8_t **pp_data, int *p
if( !*pp_data )
return VLC_EGENERIC;
*pi_data = size;
ssize_t read = vlc_stream_Read( m_art_stream, *pp_data, size );
if( read < 0 || (size_t)read != size )
{
free( *pp_data );
*pp_data = NULL;
return VLC_EGENERIC;
}
*pi_data = size;
return VLC_SUCCESS;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment