Commit 5bf38ac5 authored by luyikei's avatar luyikei Committed by Hugo Beauzée-Luyssen

WorkflowRenderer: Use Workflow::Frame instead of Workflow::AudioSample

Signed-off-by: 's avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
parent 700d15d4
......@@ -165,11 +165,11 @@ WorkflowRenderer::lockAudio( EsHandler *handler, int64_t *pts, size_t *bufferSiz
{
qint64 ptsDiff;
quint32 nbSample;
const Workflow::AudioSample *renderAudioSample;
const Workflow::Frame *renderAudioSample;
if ( m_stopping == false && m_paused == false )
{
renderAudioSample = static_cast<const Workflow::AudioSample*>( m_mainWorkflow->getOutput( Workflow::AudioTrack,
renderAudioSample = static_cast<const Workflow::Frame*>( m_mainWorkflow->getOutput( Workflow::AudioTrack,
m_paused ) );
}
else
......@@ -177,9 +177,8 @@ WorkflowRenderer::lockAudio( EsHandler *handler, int64_t *pts, size_t *bufferSiz
if ( renderAudioSample != nullptr )
{
// vlmcDebug() << "pts diff:" << renderAudioSample->ptsDiff;
nbSample = renderAudioSample->nbSample;
*buffer = renderAudioSample->buff;
*bufferSize = renderAudioSample->size;
*buffer = (uchar*)renderAudioSample->buffer();
*bufferSize = renderAudioSample->size();
ptsDiff = renderAudioSample->ptsDiff;
}
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment