[vlc-devel] commit: Fixed regression in http access. (Laurent Aimar )
git version control
git at videolan.org
Mon Feb 22 23:22:58 CET 2010
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Mon Feb 22 23:19:50 2010 +0100| [8cd59f4a46875a4f0e44ae29124ebc122d168f48] | committer: Laurent Aimar
Fixed regression in http access.
access_t::info.i_pos must always be updated to allow icy-meta and seeking
support.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8cd59f4a46875a4f0e44ae29124ebc122d168f48
---
modules/access/http.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/access/http.c b/modules/access/http.c
index 569d4d0..8ddcf5c 100644
--- a/modules/access/http.c
+++ b/modules/access/http.c
@@ -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;
More information about the vlc-devel
mailing list