[vlc-commits] commit: stream_filter/httplive.c: segment->sequence was of by one ( Jean-Paul Saman )
git at videolan.org
git at videolan.org
Tue Dec 14 13:23:05 CET 2010
vlc | branch: master | Jean-Paul Saman <jean-paul.saman at m2x.nl> | 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",
More information about the vlc-commits
mailing list