[vlmc-devel] commit: TrackWorkflow: fix time adjustment test (Hugo Beauzee-Luyssen )

git at videolan.org git at videolan.org
Wed Mar 17 18:13:28 CET 2010


vlmc | branch: master | Hugo Beauzee-Luyssen <beauze.h at gmail.com> | Wed Mar 17 18:13:18 2010 +0100| [857c04cb94b28836836cd9e885bcefd0526c965c] | committer: Hugo Beauzee-Luyssen 

TrackWorkflow: fix time adjustment test

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=857c04cb94b28836836cd9e885bcefd0526c965c
---

 src/Workflow/TrackWorkflow.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/Workflow/TrackWorkflow.cpp b/src/Workflow/TrackWorkflow.cpp
index 8b75d15..901aae3 100644
--- a/src/Workflow/TrackWorkflow.cpp
+++ b/src/Workflow/TrackWorkflow.cpp
@@ -156,7 +156,7 @@ TrackWorkflow::renderClip( ClipWorkflow* cw, qint64 currentFrame,
         cw->initialize();
         cw->waitForCompleteInit();
         //We check for a difference greater than one to avoid false positive when starting.
-        if ( (start - currentFrame > 1) || cw->getClip()->begin() != 0 ) //Clip was not started as its real begining
+        if ( (  qAbs(start - currentFrame) > 1 ) || cw->getClip()->begin() != 0 ) //Clip was not started as its real begining
         {
             adjustClipTime( currentFrame, start, cw );
         }



More information about the Vlmc-devel mailing list