hlsdemux: cache the number of fragments we are required to cache
authorYouness Alaoui <youness.alaoui@collabora.co.uk>
Tue, 23 Aug 2011 22:38:05 +0000 (22:38 +0000)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 24 Aug 2011 06:12:14 +0000 (08:12 +0200)
gst/hls/gsthlsdemux.c

index 98b099bef98da6bc8b2489007334a9760568cace..9a95a2400f7795a8408550d71fbc3c1a7ff68f8e 100644 (file)
@@ -958,7 +958,7 @@ gst_hls_demux_cache_fragments (GstHLSDemux * demux)
   }
 
   /* Cache the first fragments */
-  for (i = 0; i < demux->fragments_cache - 1; i++) {
+  for (i = 0; i < demux->fragments_cache; i++) {
     g_get_current_time (&demux->next_update);
     g_time_val_add (&demux->next_update,
         demux->client->current->targetduration * 1000000);