mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-29 19:50:40 +00:00
hlsdemux: cache the number of fragments we are required to cache
This commit is contained in:
parent
cfd28a6f90
commit
e2de4e5870
1 changed files with 1 additions and 1 deletions
|
@ -958,7 +958,7 @@ gst_hls_demux_cache_fragments (GstHLSDemux * demux)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Cache the first fragments */
|
/* 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_get_current_time (&demux->next_update);
|
||||||
g_time_val_add (&demux->next_update,
|
g_time_val_add (&demux->next_update,
|
||||||
demux->client->current->targetduration * 1000000);
|
demux->client->current->targetduration * 1000000);
|
||||||
|
|
Loading…
Reference in a new issue