[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
Sun Apr 18 19:37:48 CEST 2010
vlc/vlc-1.1 | branch: master | Laurent Aimar <fenrir at videolan.org> | Sat Apr 17 13:25:32 2010 +0200| [f6ee15ba1af5c357e7b6c3d601fa20db98afb425] | committer: Jean-Baptiste Kempf
Fixed icy meta data parsing after http reconnection when the server change the position.
TB.
(cherry picked from commit 18c556aa019a2750c98b01d681ea5b7bc20994ae)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=f6ee15ba1af5c357e7b6c3d601fa20db98afb425
---
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