[vlc-commits] commit: stream_filter/httplive.c: p_sys-> segment reset in hls_Thread is not needed. (Jean-Paul Saman )

git at videolan.org git at videolan.org
Wed Dec 22 09:59:14 CET 2010


vlc | branch: master | Jean-Paul Saman <jean-paul.saman at m2x.nl> | Mon Dec 20 21:13:35 2010 +0100| [2d06277c0e6d22c57469b8c7ce3c569ac6ea3a81] | committer: Jean-Paul Saman 

stream_filter/httplive.c: p_sys->segment reset in hls_Thread is not needed.

commit id: 4929a92d makes this code obsolete

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

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

diff --git a/modules/stream_filter/httplive.c b/modules/stream_filter/httplive.c
index b048a23..2756856 100644
--- a/modules/stream_filter/httplive.c
+++ b/modules/stream_filter/httplive.c
@@ -61,7 +61,7 @@ vlc_module_end()
 typedef struct segment_s
 {
     int         sequence;   /* unique sequence number */
-    int         duration;     /* segment duration (seconds) */
+    int         duration;   /* segment duration (seconds) */
     uint64_t    size;       /* segment size in bytes */
     uint64_t    bandwidth;  /* bandwidth usage of segments (bits per second)*/
 
@@ -937,9 +937,6 @@ static void* hls_Thread(vlc_object_t *p_this)
                 p_sys->wakeup = p_sys->last + (2 * (mtime_t)1000000);
             }
             mwait(p_sys->wakeup);
-
-            /* reset download segment to current playback segment */
-            client->segment = p_sys->segment + 1;
         }
         else if (Download(client->s, hls, segment, &client->current) != VLC_SUCCESS)
         {



More information about the vlc-commits mailing list