[vlc-devel] [PATCH 09/48] hls: VOD fast start

Hugo Beauzée-Luyssen beauze.h at gmail.com
Mon Jan 9 16:16:18 CET 2012


From: Luc Saillard <luc.saillard at sfr.com>

---
 modules/stream_filter/httplive.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/modules/stream_filter/httplive.c b/modules/stream_filter/httplive.c
index ff386ce..ecddc01 100644
--- a/modules/stream_filter/httplive.c
+++ b/modules/stream_filter/httplive.c
@@ -1710,6 +1710,10 @@ again:
     if (hls_DownloadSegmentData(s, hls, segment, current) != VLC_SUCCESS)
         return VLC_EGENERIC;
 
+    /* Fast start, don't prefetch others segments */
+    if (!p_sys->b_live)
+      return VLC_SUCCESS;
+
     /* Found better bandwidth match, try again */
     if (*current != stream)
         goto again;
-- 
1.7.8.3




More information about the vlc-devel mailing list