[vlc-commits] commit: Fixed icy meta data parsing after http reconnection when the server change the position . (Laurent Aimar )

git at videolan.org git at videolan.org
Sat Apr 17 23:24:00 CEST 2010


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sat Apr 17 13:25:32 2010 +0200| [18c556aa019a2750c98b01d681ea5b7bc20994ae] | committer: Laurent Aimar 

Fixed icy meta data parsing after http reconnection when the server change the position.

TB.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=18c556aa019a2750c98b01d681ea5b7bc20994ae
---

 modules/access/http.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/modules/access/http.c b/modules/access/http.c
index 3fb72e5..8030e65 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) {



More information about the vlc-commits mailing list