wrong behaviour updating HLS media playlists
as per https://tools.ietf.org/html/draft-pantos-http-live-streaming-07#section-6.3.4 it is expected that play list will be reloaded after now+last segment duration (possible with a few advance, to get the stream uninterrupted)
v.2.2.1 (./modules/stream_filter/httplive.c)
/* determine next time to update playlist */
p_sys->playlist.last = now;
p_sys->playlist.wakeup = now;
/* If there is no new segments,use playlist duration as sleep period base */
if( likely( hls->max_segment_length > 0 ) )
p_sys->playlist.wakeup += (mtime_t)((hls->max_segment_length * wait) * CLOCK_FREQ);
else
p_sys->playlist.wakeup += (mtime_t)((hls->duration * wait) * CLOCK_FREQ);
v.2.1.6 (./modules/stream_filter/httplive.c)
/* determine next time to update playlist */
p_sys->playlist.last = now;
p_sys->playlist.wakeup = now + ((mtime_t)(hls->duration * wait)
* (mtime_t)1000000);
compare agains native safari as well, it behaves as per spec.draft