[vlmc-devel] ClipWorkflow: Ease up debugging

Hugo Beauzée-Luyssen git at videolan.org
Fri Mar 7 19:14:35 CET 2014


vlmc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Sun Mar  2 16:52:58 2014 +0100| [006f34c657e7e3c9d44b5677c6c64bc61bc738b1] | committer: Hugo Beauzée-Luyssen

ClipWorkflow: Ease up debugging

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

 src/Workflow/AudioClipWorkflow.cpp |    1 +
 src/Workflow/ClipWorkflow.cpp      |    1 -
 src/Workflow/ImageClipWorkflow.cpp |    2 ++
 src/Workflow/VideoClipWorkflow.cpp |    1 +
 4 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/Workflow/AudioClipWorkflow.cpp b/src/Workflow/AudioClipWorkflow.cpp
index c22a0f2..c33ac0f 100644
--- a/src/Workflow/AudioClipWorkflow.cpp
+++ b/src/Workflow/AudioClipWorkflow.cpp
@@ -103,6 +103,7 @@ AudioClipWorkflow::getOutput( ClipWorkflow::GetMode mode, qint64 )
 
 void AudioClipWorkflow::initializeInternals()
 {
+    m_renderer->setName( qPrintable( QString("AudioClipWorkflow " % m_clipHelper->uuid().toString() ) ) );
     m_renderer->setOutputAudioCodec( "f32l" );
     m_renderer->setOutputAudioNumberChannels( 2 );
     m_renderer->setOutputAudioSampleRate( 48000 );
diff --git a/src/Workflow/ClipWorkflow.cpp b/src/Workflow/ClipWorkflow.cpp
index 6119ae5..0e3ed35 100644
--- a/src/Workflow/ClipWorkflow.cpp
+++ b/src/Workflow/ClipWorkflow.cpp
@@ -67,7 +67,6 @@ ClipWorkflow::initialize()
 
     delete m_renderer;
     m_renderer = m_clipHelper->clip()->getMedia()->source()->createRenderer( m_eventWatcher );
-    m_renderer->setName( qPrintable( QString("ClipWorkflow " % m_clipHelper->uuid().toString() ) ) );
 
     preallocate();
     initializeInternals();
diff --git a/src/Workflow/ImageClipWorkflow.cpp b/src/Workflow/ImageClipWorkflow.cpp
index 3c74173..1f98f95 100644
--- a/src/Workflow/ImageClipWorkflow.cpp
+++ b/src/Workflow/ImageClipWorkflow.cpp
@@ -22,6 +22,7 @@
 
 #include <QMutex>
 #include <QReadWriteLock>
+#include <QStringBuilder>
 
 #include "ImageClipWorkflow.h"
 #include "Media/Clip.h"
@@ -52,6 +53,7 @@ ImageClipWorkflow::~ImageClipWorkflow()
 
 void ImageClipWorkflow::initializeInternals()
 {
+    m_renderer->setName( qPrintable( QString("ImageClipWorkflow " % m_clipHelper->uuid().toString() ) ) );
     m_renderer->enableVideoOutputToMemory( this, &lock, &unlock, m_fullSpeedRender );
     m_renderer->setOutputWidth( m_width );
     m_renderer->setOutputHeight( m_height );
diff --git a/src/Workflow/VideoClipWorkflow.cpp b/src/Workflow/VideoClipWorkflow.cpp
index 8892fba..9a8ce6b 100644
--- a/src/Workflow/VideoClipWorkflow.cpp
+++ b/src/Workflow/VideoClipWorkflow.cpp
@@ -80,6 +80,7 @@ void
 VideoClipWorkflow::initializeInternals()
 {
     initFilters();
+    m_renderer->setName( qPrintable( QString("VideoClipWorkflow " % m_clipHelper->uuid().toString() ) ) );
     m_renderer->enableVideoOutputToMemory( this, &lock, &unlock, m_fullSpeedRender );
     m_renderer->setOutputWidth( m_width );
     m_renderer->setOutputHeight( m_height );



More information about the Vlmc-devel mailing list