Commit a3fbd0fb authored by Clement CHAVANCE's avatar Clement CHAVANCE

replaced the Clip's FPS define by a public static const attribute

parent 9c3c736e
......@@ -107,7 +107,7 @@ void Clip::computeLength()
{
float fps = m_parent->getFps();
if ( fps < 0.1f )
fps = FPS;
fps = Clip::DefaultFPS;
m_length = m_end - m_begin;
m_lengthSeconds = qRound64( (float)m_length / fps );
emit lengthUpdated();
......
......@@ -33,10 +33,6 @@
#include "Media.h"
//TODO: REMOVE THIS
#ifndef FPS
#define FPS 30
#endif
class Media;
......@@ -45,6 +41,7 @@ class Clip : public QObject
Q_OBJECT
public:
static const int DefaultFPS;
Clip( Media* parent );
Clip( Media* parent, qint64 begin, qint64 end );
Clip( Clip* creator, qint64 begin, qint64 end );
......
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