Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
37c8d257
Commit
37c8d257
authored
Aug 05, 2013
by
Ilkka Ollakka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
httplive: cache around 10 sec worth of segments instead of just 2
parent
f6d867eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
modules/stream_filter/httplive.c
modules/stream_filter/httplive.c
+3
-2
No files found.
modules/stream_filter/httplive.c
View file @
37c8d257
...
...
@@ -1727,8 +1727,9 @@ static int Prefetch(stream_t *s, int *current)
else
if
(
vlc_array_count
(
hls
->
segments
)
==
1
&&
p_sys
->
b_live
)
msg_Warn
(
s
,
"Only 1 segment available to prefetch in live stream; may stall"
);
/* Download first 2 segments of this HLS stream if they exist */
for
(
int
i
=
0
;
i
<
__MIN
(
vlc_array_count
(
hls
->
segments
),
2
);
i
++
)
/* Download ~10s worth of segments of this HLS stream if they exist */
unsigned
segment_amount
=
(
0
.
5
f
+
10
/
hls
->
duration
);
for
(
int
i
=
0
;
i
<
__MIN
(
vlc_array_count
(
hls
->
segments
),
segment_amount
);
i
++
)
{
segment_t
*
segment
=
segment_GetSegment
(
hls
,
p_sys
->
download
.
segment
);
if
(
segment
==
NULL
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment