]> git.sesse.net Git - vlc/commitdiff
Fixed icy meta data parsing after http reconnection when the server change the position.
authorLaurent Aimar <fenrir@videolan.org>
Sat, 17 Apr 2010 11:25:32 +0000 (13:25 +0200)
committerLaurent Aimar <fenrir@videolan.org>
Sat, 17 Apr 2010 20:44:28 +0000 (22:44 +0200)
TB.

modules/access/http.c

index 3fb72e5e112c215117c50b0cf6752b26a538da43..8030e658fdcae37b8376a9213021c2587ad7c6c8 100644 (file)
@@ -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) {