vlc | branch: master | Jean-Paul Saman <[email protected]> | Tue Dec 7 16:15:11 2010 +0100| [4c12e70681435b23813b31555169f992afd07c77] | committer: 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. > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4c12e70681435b23813b31555169f992afd07c77 --- modules/stream_filter/httplive.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/modules/stream_filter/httplive.c b/modules/stream_filter/httplive.c index d57defc..16b8480 100644 --- a/modules/stream_filter/httplive.c +++ b/modules/stream_filter/httplive.c @@ -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", _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
