[vlc-commits] stream_filter/httplive.c: ChooseSegment() defaults first segment

Jean-Paul Saman git at videolan.org
Fri Feb 11 10:14:08 CET 2011


vlc | branch: master | Jean-Paul Saman <jean-paul.saman at m2x.nl> | Fri Feb  4 16:01:32 2011 +0100| [32c4e59c37e09e53c36fe1ca05564abf345e1131] | committer: Jean-Paul Saman

stream_filter/httplive.c: ChooseSegment() defaults first segment

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=32c4e59c37e09e53c36fe1ca05564abf345e1131
---

 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 f92528f..197a2dc 100644
--- a/modules/stream_filter/httplive.c
+++ b/modules/stream_filter/httplive.c
@@ -361,7 +361,7 @@ static int ChooseSegment(stream_t *s, int current)
     /* Choose a segment to start which is no closer then
      * 3 times the target duration from the end of the playlist.
      */
-    int wanted = -1;
+    int wanted = 0;
     int duration = 0;
     int count = vlc_array_count(hls->segments);
     int i = p_sys->b_live ? count - 1 : 0;



More information about the vlc-commits mailing list