Commit 8cd59f4a authored by Laurent Aimar's avatar Laurent Aimar

Fixed regression in http access.

access_t::info.i_pos must always be updated to allow icy-meta and seeking
support.
parent d66b08e0
......@@ -885,9 +885,9 @@ static ssize_t Read( access_t *p_access, uint8_t *p_buffer, size_t i_len )
}
assert( i_read >= 0 );
p_access->info.i_pos += i_read;
if( p_sys->b_has_size )
{
p_access->info.i_pos += i_read;
assert( p_access->info.i_pos <= p_access->info.i_size );
assert( (unsigned)i_read <= p_sys->i_remaining );
p_sys->i_remaining -= i_read;
......
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