[vlmc-devel] ClipWorkflow: Remove unneeded check
Hugo Beauzée-Luyssen
git at videolan.org
Fri Jan 24 19:37:03 CET 2014
vlmc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Sun Jan 19 14:41:29 2014 +0200| [0a43901fcceaaf9a370fe14bd910e7d06c534555] | committer: Hugo Beauzée-Luyssen
ClipWorkflow: Remove unneeded check
> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=0a43901fcceaaf9a370fe14bd910e7d06c534555
---
src/Workflow/ClipWorkflow.cpp | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/Workflow/ClipWorkflow.cpp b/src/Workflow/ClipWorkflow.cpp
index 09d8792..b6a520e 100644
--- a/src/Workflow/ClipWorkflow.cpp
+++ b/src/Workflow/ClipWorkflow.cpp
@@ -244,12 +244,10 @@ ClipWorkflow::commonUnlock()
void
ClipWorkflow::computePtsDiff( qint64 pts )
{
- if ( m_previousPts == -1 )
- m_previousPts = pts;
- if ( m_currentPts == -1 )
- m_currentPts = pts;
if ( m_pauseDuration != -1 )
{
+ //No need to check for m_currentPtr before, as we can't start in paused mode.
+ //so m_currentPts will not be -1
m_previousPts = m_currentPts + m_pauseDuration;
m_pauseDuration = -1;
}
More information about the Vlmc-devel
mailing list