[vlmc-devel] WorkflowFileRenderer: Fix missing initialization
Hugo Beauzée-Luyssen
git at videolan.org
Mon Feb 24 20:09:44 CET 2014
vlmc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Mon Feb 24 21:02:55 2014 +0200| [c3d13814eb3dbdc323c81ac6b6937e3e5a58f90b] | committer: Hugo Beauzée-Luyssen
WorkflowFileRenderer: Fix missing initialization
> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=c3d13814eb3dbdc323c81ac6b6937e3e5a58f90b
---
src/Renderer/WorkflowRenderer.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/Renderer/WorkflowRenderer.cpp b/src/Renderer/WorkflowRenderer.cpp
index dd8411f..28b1b74 100644
--- a/src/Renderer/WorkflowRenderer.cpp
+++ b/src/Renderer/WorkflowRenderer.cpp
@@ -90,6 +90,7 @@ WorkflowRenderer::setupRenderer( quint32 width, quint32 height, double fps )
m_source->setAspectRatio( qPrintable( aspectRatio() ) );
m_source->setNumberChannels( m_nbChannels );
m_source->setSampleRate( m_rate );
+ m_esHandler->fps = fps;
delete m_sourceRenderer;
@@ -158,6 +159,7 @@ WorkflowRenderer::lockVideo( void* data, int64_t *pts, size_t *bufferSize, const
else
*buffer = ret->buffer();
*bufferSize = ret->size();
+ vlmcDebug() << __func__ << "Rendered frame. pts:" << m_pts;
return 0;
}
@@ -195,6 +197,7 @@ WorkflowRenderer::lockAudio( EsHandler *handler, int64_t *pts, size_t *bufferSiz
ptsDiff = m_pts - m_audioPts;
}
m_audioPts = *pts = m_audioPts + ptsDiff;
+ vlmcDebug() << __func__ << "Rendered audio sample. pts:" << m_audioPts;
return 0;
}
More information about the Vlmc-devel
mailing list