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
03a564d9
Commit
03a564d9
authored
Nov 27, 2015
by
François Cartegnie
🤞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: adaptative: fix timeline time->number
was not working with live streams as not starting from zero
parent
146d47c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
modules/demux/adaptative/playlist/SegmentTimeline.cpp
modules/demux/adaptative/playlist/SegmentTimeline.cpp
+3
-0
No files found.
modules/demux/adaptative/playlist/SegmentTimeline.cpp
View file @
03a564d9
...
...
@@ -90,6 +90,9 @@ uint64_t SegmentTimeline::getElementNumberByScaledPlaybackTime(stime_t scaled) c
for
(
it
=
elements
.
begin
();
it
!=
elements
.
end
();
++
it
)
{
const
Element
*
el
=
*
it
;
if
(
it
==
elements
.
begin
())
scaled
-=
el
->
t
;
for
(
uint64_t
repeat
=
1
+
el
->
r
;
repeat
;
repeat
--
)
{
if
(
el
->
d
>=
scaled
)
...
...
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