[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
Fri Aug 16 15:01:16 CEST 2013
vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Mon Aug 5 19:31:22 2013 +0300| [34ab3bb9c610ce2a4dae86997c82fb3cc75af061] | committer: Ilkka Ollakka
httplive: Choose initial stream to be the biggest one, avoiding audio-only as migration from that doesn't work in some cases
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=34ab3bb9c610ce2a4dae86997c82fb3cc75af061
---
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