Commit 4209c4d5 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

PreviewWidget: Pausing Clip render when next/previous frame is triggered.

parent 0a942e92
......@@ -152,7 +152,7 @@ ClipRenderer::togglePlayPause( bool forcePause )
void
ClipRenderer::nextFrame()
{
if ( m_isRendering == true && m_paused == true )
if ( m_isRendering == true )
{
m_mediaPlayer->nextFrame();
}
......@@ -161,8 +161,10 @@ ClipRenderer::nextFrame()
void
ClipRenderer::previousFrame()
{
if ( m_isRendering == true && m_paused == true )
if ( m_isRendering == true )
{
if ( m_paused == false )
togglePlayPause( true );
qint64 interval = static_cast<qint64>( (1.0f / m_mediaPlayer->getFps()) * 1000.0f );
m_mediaPlayer->setTime( m_mediaPlayer->getTime() - interval );
}
......
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