]> git.sesse.net Git - vlc/commitdiff
stream_filter/httplive.c: p_sys->segment reset in hls_Thread is not needed.
authorJean-Paul Saman <jean-paul.saman@m2x.nl>
Mon, 20 Dec 2010 20:13:35 +0000 (21:13 +0100)
committerJean-Paul Saman <jean-paul.saman@m2x.nl>
Wed, 22 Dec 2010 08:38:28 +0000 (09:38 +0100)
commit id: 4929a92d makes this code obsolete

modules/stream_filter/httplive.c

index b048a2380180940ccec60037cbfebe89903f5022..2756856b5beb254814e7020c5f5d4335b1c64475 100644 (file)
@@ -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)
         {