hlsdemux: cache the number of fragments we are required to cache

This commit is contained in:
Youness Alaoui 2011-08-23 22:38:05 +00:00 committed by Sebastian Dröge
parent cfd28a6f90
commit e2de4e5870

View 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);