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 18c556aa019a2750c98b01d681ea5b7bc20994ae)
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 )
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) {
......
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