Commit f6ee15ba authored by Laurent Aimar's avatar Laurent Aimar Committed by Jean-Baptiste Kempf

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

TB.
(cherry picked from commit 18c556aa)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent c369b777
...@@ -1427,6 +1427,7 @@ static int Request( access_t *p_access, uint64_t i_tell ) ...@@ -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); sscanf(p,"bytes %"SCNu64"-%"SCNu64"/%"SCNu64,&i_ntell,&i_nend,&i_nsize);
if(i_nend > i_ntell ) { if(i_nend > i_ntell ) {
p_access->info.i_pos = 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; p_sys->i_remaining = i_nend+1-i_ntell;
int64_t i_size = (i_nsize > i_nend) ? i_nsize : (i_nend + 1); int64_t i_size = (i_nsize > i_nend) ? i_nsize : (i_nend + 1);
if(i_size > p_access->info.i_size) { if(i_size > p_access->info.i_size) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment