Commit 18c556aa authored by Laurent Aimar's avatar Laurent Aimar

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

TB.
parent 5d0b102f
......@@ -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