[vlc-commits] commit: Revert "stream_filter/httplive.c: select stream with lowest bandwidth to start playback." (Jean-Paul Saman )

git at videolan.org git at videolan.org
Tue Dec 14 13:23:05 CET 2010


vlc | branch: master | Jean-Paul Saman <jean-paul.saman at m2x.nl> | Tue Dec 14 12:10:13 2010 +0100| [3f9e7e3fa9b95b63acec455febc34fca3ec86b35] | committer: Jean-Paul Saman 

Revert "stream_filter/httplive.c: select stream with lowest bandwidth to start playback."

This reverts commit d20cd47813b732bba92eb3d2663f13aa89108576.

Conflicts:

	modules/stream_filter/httplive.c

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

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

diff --git a/modules/stream_filter/httplive.c b/modules/stream_filter/httplive.c
index 9ceb8e1..a7de112 100644
--- a/modules/stream_filter/httplive.c
+++ b/modules/stream_filter/httplive.c
@@ -233,29 +233,6 @@ static hls_stream_t *hls_GetLast(vlc_array_t *hls_stream)
     return (hls_stream_t *) hls_Get(hls_stream, count);
 }
 
-static int hls_LowestBandwidthStream(vlc_array_t *hls_stream)
-{
-    int count = vlc_array_count(hls_stream);
-    int i_lowest = 0;
-    uint64_t lowest = 0;
-
-    for (int i = 0; i < count; i++)
-    {
-        hls_stream_t *hls = (hls_stream_t *) vlc_array_item_at_index(hls_stream, i);
-        if (lowest == 0)
-        {
-            lowest = hls->bandwidth;
-            i_lowest = i;
-        }
-        else if (hls->bandwidth < lowest)
-        {
-            lowest = hls->bandwidth;
-            i_lowest = i;
-        }
-    }
-    return i_lowest;
-}
-
 /* Segment */
 static segment_t *segment_New(hls_stream_t* hls, int duration, char *uri)
 {



More information about the vlc-commits mailing list