Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Steve Lhomme
VLC
Commits
abf78a17
Commit
abf78a17
authored
Sep 16, 2015
by
François Cartegnie
🤞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: adaptative: allow to refresh segments
parent
09c94ed7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
0 deletions
+9
-0
modules/demux/adaptative/SegmentTracker.cpp
modules/demux/adaptative/SegmentTracker.cpp
+3
-0
modules/demux/adaptative/playlist/SegmentInformation.cpp
modules/demux/adaptative/playlist/SegmentInformation.cpp
+5
-0
modules/demux/adaptative/playlist/SegmentInformation.hpp
modules/demux/adaptative/playlist/SegmentInformation.hpp
+1
-0
No files found.
modules/demux/adaptative/SegmentTracker.cpp
View file @
abf78a17
...
...
@@ -84,6 +84,9 @@ SegmentChunk * SegmentTracker::getNextChunk(bool switch_allowed)
initializing
=
true
;
}
/* Ensure content is loaded */
rep
->
runLocalUpdates
();
if
(
!
init_sent
)
{
init_sent
=
true
;
...
...
modules/demux/adaptative/playlist/SegmentInformation.cpp
View file @
abf78a17
...
...
@@ -308,6 +308,11 @@ void SegmentInformation::pruneBySegmentNumber(uint64_t num)
childs
.
at
(
i
)
->
pruneBySegmentNumber
(
num
);
}
void
SegmentInformation
::
runLocalUpdates
()
{
}
SegmentInformation
::
SwitchPolicy
SegmentInformation
::
getSwitchPolicy
()
const
{
if
(
switchpolicy
==
SWITCH_UNKNOWN
)
...
...
modules/demux/adaptative/playlist/SegmentInformation.hpp
View file @
abf78a17
...
...
@@ -84,6 +84,7 @@ namespace adaptative
void
getDurationsRange
(
mtime_t
*
,
mtime_t
*
)
const
;
virtual
void
mergeWith
(
SegmentInformation
*
,
mtime_t
);
virtual
void
pruneBySegmentNumber
(
uint64_t
);
virtual
void
runLocalUpdates
();
protected:
std
::
size_t
getAllSegments
(
std
::
vector
<
ISegment
*>
&
)
const
;
...
...
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