Commit 7fa797f3 authored by Ilkka Ollakka's avatar Ilkka Ollakka

httplive: check segment gap on last segment number instead of the segment...

httplive: check segment gap on last segment number instead of the segment number of last playlist load
parent 7258c831
......@@ -739,7 +739,9 @@ static int parse_MediaSequence(stream_t *s, hls_stream_t *hls, char *p_read)
if (s->p_sys->b_live)
{
hls_stream_t *last = hls_GetLast(s->p_sys->hls_stream);
if ((last->sequence < sequence) && (sequence - last->sequence != 1))
segment_t *last_segment = segment_GetSegment( last, vlc_array_count( last->segments ) - 1 );
if ( ( last_segment->sequence < sequence) &&
( sequence - last_segment->sequence >= 1 ))
msg_Err(s, "EXT-X-MEDIA-SEQUENCE gap in playlist (new=%d, old=%d)",
sequence, last->sequence);
}
......
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