Commit 2cf367bf 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>
(cherry picked from commit 2a3e95d7b511fb627ac79a626068f4ba4271ad13)
parent 264eb6d1
......@@ -831,7 +831,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