From: Laurent Aimar Date: Sat, 17 Apr 2010 11:25:32 +0000 (+0200) Subject: Fixed icy meta data parsing after http reconnection when the server change the position. X-Git-Tag: 1.2.0-pre1~7011 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=18c556aa019a2750c98b01d681ea5b7bc20994ae;p=vlc Fixed icy meta data parsing after http reconnection when the server change the position. TB. --- diff --git a/modules/access/http.c b/modules/access/http.c index 3fb72e5e11..8030e658fd 100644 --- a/modules/access/http.c +++ b/modules/access/http.c @@ -1427,6 +1427,7 @@ static int Request( access_t *p_access, uint64_t i_tell ) sscanf(p,"bytes %"SCNu64"-%"SCNu64"/%"SCNu64,&i_ntell,&i_nend,&i_nsize); if(i_nend > i_ntell ) { p_access->info.i_pos = i_ntell; + p_sys->i_icy_offset = i_ntell; p_sys->i_remaining = i_nend+1-i_ntell; int64_t i_size = (i_nsize > i_nend) ? i_nsize : (i_nend + 1); if(i_size > p_access->info.i_size) {