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
4c4ac431
Commit
4c4ac431
authored
Dec 20, 2010
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stream_filter/httplive.c: Allow bandwidth adaptation while prefetching.
Allow bandwidth adaptation while prefetching.
parent
cc8181c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
modules/stream_filter/httplive.c
modules/stream_filter/httplive.c
+12
-1
No files found.
modules/stream_filter/httplive.c
View file @
4c4ac431
...
...
@@ -1012,9 +1012,10 @@ again:
goto
again
;
/* Download first 2 segments of this HLS stream */
stream
=
*
current
;
for
(
int
i
=
0
;
i
<
2
;
i
++
)
{
segment_t
*
segment
=
segment_GetSegment
(
hls
,
p_sys
->
segment
);
segment_t
*
segment
=
segment_GetSegment
(
hls
,
i
);
if
(
segment
==
NULL
)
return
VLC_EGENERIC
;
...
...
@@ -1028,6 +1029,16 @@ again:
return
VLC_EGENERIC
;
p_sys
->
segment
++
;
/* adapt bandwidth? */
if
(
*
current
!=
stream
)
{
hls_stream_t
*
hls
=
hls_Get
(
p_sys
->
hls_stream
,
*
current
);
if
(
hls
==
NULL
)
return
VLC_EGENERIC
;
stream
=
*
current
;
}
}
return
VLC_SUCCESS
;
...
...
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