Commit 2a3e95d7 authored by Sven Petai's avatar Sven Petai Committed by Rémi Denis-Courmont

Return fatal error to the upper layers when connection is lost while reading...

Return fatal error to the upper layers when connection is lost while reading the ICY metadata. Otherwise we will end up with an endless loop since -1 is interpreted by AStreamRefillStream() as a temporary error.
Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent b9a7045b
......@@ -826,7 +826,7 @@ static ssize_t Read( access_t *p_access, uint8_t *p_buffer, size_t i_len )
if( ReadICYMeta( p_access ) )
{
p_access->info.b_eof = true;
return -1;
return 0;
}
}
if( i_len > i_next )
......
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