Commit 32c4e59c authored by Jean-Paul Saman's avatar Jean-Paul Saman

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

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