Commit 7bc5c172 authored by Christophe Courtaut's avatar Christophe Courtaut

Use the highest pts frame to compute pts diff

parent 797c2f68
......@@ -113,6 +113,7 @@ void AudioClipWorkflow::unlock( AudioClipWorkflow* cw, uint8_t* pcm_buffe
cw->m_buffer->ptsDiff = current_pts - previous_pts;
}
current_pts = qMax( current_pts, previous_pts );
cw->m_renderLock->unlock();
cw->m_stateLock->lockForWrite();
......
......@@ -144,6 +144,7 @@ void VideoClipWorkflow::unlock( VideoClipWorkflow* cw, void* buffer, int widt
}
else
cw->m_stateLock->unlock();
current_pts = qMax( current_pts, previous_pts );
// qDebug() << '[' << (void*)cw << "] ClipWorkflow::unlock";
cw->checkStateChange();
}
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