Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
7e21f34f
Commit
7e21f34f
authored
May 30, 2012
by
Chris Smowton
Committed by
Jean-Baptiste Kempf
May 31, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix trying to prefetch 2 segments from a 1-segment HLS stream
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
047af27e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
modules/stream_filter/httplive.c
modules/stream_filter/httplive.c
+7
-2
No files found.
modules/stream_filter/httplive.c
View file @
7e21f34f
...
...
@@ -1652,8 +1652,13 @@ static int Prefetch(stream_t *s, int *current)
if
(
hls
==
NULL
)
return
VLC_EGENERIC
;
/* Download first 2 segments of this HLS stream */
for
(
int
i
=
0
;
i
<
2
;
i
++
)
if
(
vlc_array_count
(
hls
->
segments
)
==
0
)
return
VLC_EGENERIC
;
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
++
)
{
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