git.videolan.org
/
vlc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fixed system clock phase when changing rate.
[vlc.git]
/
src
/
input
/
clock.c
diff --git
a/src/input/clock.c
b/src/input/clock.c
index
beee45e
..
1655629
100644
(file)
--- a/
src/input/clock.c
+++ b/
src/input/clock.c
@@
-268,7
+268,10
@@
void input_clock_ChangeRate( input_clock_t *cl, int i_rate )
/* Move the reference point */
if( cl->b_has_reference )
+ {
+ cl->last.i_system = ClockStreamToSystem( cl, cl->last.i_stream );
cl->ref = cl->last;
+ }
cl->i_rate = i_rate;