Commit a96d1d70 authored by Hugo Beauzee-Luyssen's avatar Hugo Beauzee-Luyssen

Ugly loop mode

parent 89fc665d
......@@ -32,6 +32,8 @@
//FIXME: remove this !
#include "ClipWorkflow.h"
#define LOOP_MODE
LightVideoFrame* MainWorkflow::blackOutput = NULL;
MainWorkflow::MainWorkflow( int trackCount ) :
......@@ -147,6 +149,11 @@ void MainWorkflow::unpause()
void MainWorkflow::nextFrame()
{
++m_currentFrame;
#ifdef LOOP_MODE
if ( m_currentFrame == m_lengthFrame )
m_currentFrame = 0;
#endif
emit frameChanged( m_currentFrame );
emit positionChanged( (float)m_currentFrame / (float)m_lengthFrame );
}
......
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