Commit 369d7605 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

hds: fix stream error handling

parent 73ed9baf
...@@ -831,6 +831,8 @@ static uint8_t* download_chunk( stream_t *s, ...@@ -831,6 +831,8 @@ static uint8_t* download_chunk( stream_t *s,
int read = stream_Read( download_stream, data, int read = stream_Read( download_stream, data,
size ); size );
if( read < 0 )
read = 0;
chunk->data_len = read; chunk->data_len = read;
if( read < size ) if( read < size )
......
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