[vlc-devel] commit: Fixed system clock phase when changing rate. (Laurent Aimar )

git version control git at videolan.org
Wed Oct 22 22:22:07 CEST 2008


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Wed Oct 22 00:58:19 2008 +0200| [ba75d5221d90168c76fa255eff047ac96724ddd1] | committer: Laurent Aimar 

Fixed system clock phase when changing rate.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ba75d5221d90168c76fa255eff047ac96724ddd1
---

 src/input/clock.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/input/clock.c b/src/input/clock.c
index beee45e..1655629 100644
--- 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;
 




More information about the vlc-devel mailing list