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
3c84b6ca
Commit
3c84b6ca
authored
Jul 17, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improved late values after pts_delay changes in clock.c.
parent
93682d7c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
src/input/clock.c
src/input/clock.c
+12
-2
No files found.
src/input/clock.c
View file @
3c84b6ca
...
...
@@ -501,10 +501,20 @@ void input_clock_SetJitter( input_clock_t *cl,
/* Update late observations */
const
mtime_t
i_delay_delta
=
i_pts_delay
-
cl
->
i_pts_delay
;
mtime_t
pi_late
[
INPUT_CLOCK_LATE_COUNT
];
for
(
int
i
=
0
;
i
<
INPUT_CLOCK_LATE_COUNT
;
i
++
)
pi_late
[
i
]
=
__MAX
(
cl
->
late
.
pi_value
[(
cl
->
late
.
i_index
+
1
+
i
)
%
INPUT_CLOCK_LATE_COUNT
]
-
i_delay_delta
,
0
);
for
(
int
i
=
0
;
i
<
INPUT_CLOCK_LATE_COUNT
;
i
++
)
cl
->
late
.
pi_value
[
i
]
=
0
;
cl
->
late
.
i_index
=
0
;
for
(
int
i
=
0
;
i
<
INPUT_CLOCK_LATE_COUNT
;
i
++
)
{
if
(
cl
->
late
.
pi_value
[
i
]
>
0
)
cl
->
late
.
pi_value
[
i
]
=
__MAX
(
cl
->
late
.
pi_value
[
i
]
-
i_delay_delta
,
0
);
if
(
pi_late
[
i
]
<=
0
)
continue
;
cl
->
late
.
pi_value
[
cl
->
late
.
i_index
]
=
pi_late
[
i
];
cl
->
late
.
i_index
=
(
cl
->
late
.
i_index
+
1
)
%
INPUT_CLOCK_LATE_COUNT
;
}
/* TODO always save the value, and when rebuffering use the new one if smaller
...
...
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