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
d7020419
Commit
d7020419
authored
Oct 30, 2015
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: adaptative: allow timeline merging from local node
parent
aa54a0f2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
modules/demux/adaptative/playlist/SegmentInformation.cpp
modules/demux/adaptative/playlist/SegmentInformation.cpp
+11
-0
modules/demux/adaptative/playlist/SegmentInformation.hpp
modules/demux/adaptative/playlist/SegmentInformation.hpp
+1
-0
No files found.
modules/demux/adaptative/playlist/SegmentInformation.cpp
View file @
d7020419
...
...
@@ -375,6 +375,17 @@ void SegmentInformation::mergeWith(SegmentInformation *updated, mtime_t prunetim
/* FIXME: handle difference */
}
void
SegmentInformation
::
mergeWithTimeline
(
SegmentTimeline
*
updated
)
{
MediaSegmentTemplate
*
templ
=
inheritSegmentTemplate
();
if
(
templ
)
{
SegmentTimeline
*
timeline
=
templ
->
segmentTimeline
.
Get
();
if
(
timeline
)
timeline
->
mergeWith
(
*
updated
);
}
}
void
SegmentInformation
::
pruneBySegmentNumber
(
uint64_t
num
)
{
if
(
segmentList
)
...
...
modules/demux/adaptative/playlist/SegmentInformation.hpp
View file @
d7020419
...
...
@@ -84,6 +84,7 @@ namespace adaptative
mtime_t
getPlaybackTimeBySegmentNumber
(
uint64_t
)
const
;
virtual
void
getDurationsRange
(
mtime_t
*
,
mtime_t
*
)
const
;
virtual
void
mergeWith
(
SegmentInformation
*
,
mtime_t
);
virtual
void
mergeWithTimeline
(
SegmentTimeline
*
);
/* ! don't use with global merge */
virtual
void
pruneBySegmentNumber
(
uint64_t
);
virtual
void
runLocalUpdates
(
mtime_t
,
uint64_t
);
...
...
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