[vlc-commits] httplive: Choose initial stream to be the biggest one, avoiding audio-only as migration from that doesn't work in some cases

Ilkka Ollakka git at videolan.org
Sun Aug 18 21:43:44 CEST 2013


vlc/vlc-2.1 | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Mon Aug  5 19:31:22 2013 +0300| [813d8af886c73f90124159c21b0b0aa7b15f21f2] | committer: Jean-Baptiste Kempf

httplive: Choose initial stream to be the biggest one, avoiding audio-only as migration from that doesn't work in some cases

(cherry picked from commit 34ab3bb9c610ce2a4dae86997c82fb3cc75af061)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.1.git/?a=commit;h=813d8af886c73f90124159c21b0b0aa7b15f21f2
---

 modules/stream_filter/httplive.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/stream_filter/httplive.c b/modules/stream_filter/httplive.c
index dca2a54..0bd2546 100644
--- a/modules/stream_filter/httplive.c
+++ b/modules/stream_filter/httplive.c
@@ -1991,7 +1991,7 @@ static int Open(vlc_object_t *p_this)
            sizeof( hls_stream_t* ), &hls_CompareStreams );
 
     /* Choose first HLS stream to start with */
-    int current = p_sys->playback.stream = 0;
+    int current = p_sys->playback.stream = p_sys->hls_stream->i_count-1;
     p_sys->playback.segment = p_sys->download.segment = ChooseSegment(s, current);
 
     /* manage encryption key if needed */



More information about the vlc-commits mailing list