[vlmc-devel] commit: ClipWorkflow: removed debug flag (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 17:36:15 2010 +0100| [0a760c2b4ed843a1cb57a3ea972cb495d1c8995f] | committer: Hugo Beauzee-Luyssen 

ClipWorkflow: removed debug flag

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

 src/Workflow/AudioClipWorkflow.cpp |    1 -
 src/Workflow/ClipWorkflow.cpp      |   11 -----------
 src/Workflow/ClipWorkflow.h        |    1 -
 src/Workflow/VideoClipWorkflow.cpp |    1 -
 4 files changed, 0 insertions(+), 14 deletions(-)

diff --git a/src/Workflow/AudioClipWorkflow.cpp b/src/Workflow/AudioClipWorkflow.cpp
index f79a253..32644b6 100644
--- a/src/Workflow/AudioClipWorkflow.cpp
+++ b/src/Workflow/AudioClipWorkflow.cpp
@@ -28,7 +28,6 @@
 AudioClipWorkflow::AudioClipWorkflow( Clip *clip ) :
         ClipWorkflow( clip )
 {
-    debugType = 1;
     m_ptsOffset = 0;
 }
 
diff --git a/src/Workflow/ClipWorkflow.cpp b/src/Workflow/ClipWorkflow.cpp
index 6284d71..6802f8b 100644
--- a/src/Workflow/ClipWorkflow.cpp
+++ b/src/Workflow/ClipWorkflow.cpp
@@ -229,28 +229,17 @@ void        ClipWorkflow::commonUnlock()
 
 void    ClipWorkflow::computePtsDiff( qint64 pts )
 {
-    if ( debugType == 1 && pts < m_previousPts )
-    {
-        qCritical() << "New PTS is lower than previous PTS !<<<<<<<<<<<<<<<<<<<<<<<<<<" << m_previousPts << pts;
-    }
-
     if ( m_previousPts == -1 )
         m_previousPts = pts;
     if ( m_currentPts == -1 )
         m_currentPts = pts;
     if ( m_pauseDuration != -1 )
     {
-//        qDebug() << "In pause mode";
         m_previousPts = m_currentPts + m_pauseDuration;
         m_pauseDuration = -1;
     }
     else
         m_previousPts = m_currentPts;
-//    if ( debugType == 1 )
-//    {
-//        qDebug() << "in computePtsDiff, After >> : pts:" << pts << "previousPts:" << m_previousPts
-//                << "currentPts:" << m_currentPts;
-//    }
     m_currentPts = qMax( pts, m_previousPts );
 }
 
diff --git a/src/Workflow/ClipWorkflow.h b/src/Workflow/ClipWorkflow.h
index f689c79..9c9b831 100644
--- a/src/Workflow/ClipWorkflow.h
+++ b/src/Workflow/ClipWorkflow.h
@@ -242,7 +242,6 @@ class   ClipWorkflow : public QObject
         qint64                  m_beginPausePts;
         qint64                  m_pauseDuration;
         bool                    m_fullSpeedRender;
-        int                     debugType;
         WaitCondition           *m_renderWaitCond;
 
     private slots:
diff --git a/src/Workflow/VideoClipWorkflow.cpp b/src/Workflow/VideoClipWorkflow.cpp
index 414991f..0e66184 100644
--- a/src/Workflow/VideoClipWorkflow.cpp
+++ b/src/Workflow/VideoClipWorkflow.cpp
@@ -35,7 +35,6 @@ VideoClipWorkflow::VideoClipWorkflow( Clip *clip ) :
         m_width( 0 ),
         m_height( 0 )
 {
-    debugType = 2;
 }
 
 VideoClipWorkflow::~VideoClipWorkflow()



More information about the Vlmc-devel mailing list