From 18c556aa019a2750c98b01d681ea5b7bc20994ae Mon Sep 17 00:00:00 2001 From: Laurent Aimar Date: Sat, 17 Apr 2010 13:25:32 +0200 Subject: [PATCH] Fixed icy meta data parsing after http reconnection when the server change the position. TB. --- modules/access/http.c | 1 + 1 file changed, 1 insertion(+) 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) { -- 2.39.2