Commit 4c12e706 authored by Jean-Paul Saman's avatar Jean-Paul Saman

stream_filter/httplive.c: segment->sequence was of by one

The value for segment->sequence is of by one. It is specified to start
at 0 and the code lets it start by 1.
parent d69f5186
......@@ -381,7 +381,7 @@ static void parse_SegmentInformation(stream_t *s, hls_stream_t *hls, char *p_rea
vlc_mutex_lock(&hls->lock);
segment_t *segment = segment_New(hls, duration, psz_uri ? psz_uri : uri);
if (segment)
segment->sequence = hls->sequence + vlc_array_count(hls->segments);
segment->sequence = hls->sequence + vlc_array_count(hls->segments) - 1;
if (duration > hls->duration)
{
msg_Err(s, "EXTINF:%d duration is larger then EXT-X-TARGETDURATION:%d",
......
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