From: Youness Alaoui Date: Tue, 23 Aug 2011 22:38:05 +0000 (+0000) Subject: hlsdemux: cache the number of fragments we are required to cache X-Git-Tag: 1.19.3~507^2~16042^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e2de4e58703e206db3c26046dd6c05b7bb79215a;p=platform%2Fupstream%2Fgstreamer.git hlsdemux: cache the number of fragments we are required to cache --- diff --git a/gst/hls/gsthlsdemux.c b/gst/hls/gsthlsdemux.c index 98b099bef9..9a95a2400f 100644 --- a/gst/hls/gsthlsdemux.c +++ b/gst/hls/gsthlsdemux.c @@ -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);