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

FPS is stored in a float. Not an integer.

parent dd55f603
......@@ -170,7 +170,7 @@ unsigned int Media::getFps() const
return m_fps;
}
void Media::setFps( unsigned int fps )
void Media::setFps( float fps )
{
m_fps = fps;
}
......
......@@ -113,7 +113,7 @@ public:
void setHeight( int height );
unsigned int getFps() const;
void setFps( unsigned int fps );
void setFps( float fps );
const QUuid& getUuid() const;
......@@ -148,7 +148,7 @@ protected:
qint64 m_length;
unsigned int m_width;
unsigned int m_height;
unsigned int m_fps;
float m_fps;
int* m_audioSpectrum;
audioData m_audioData;
FileType m_fileType;
......
......@@ -88,7 +88,7 @@ void MetaDataWorker::getMetaData()
m_currentMedia->setWidth( m_mediaPlayer->getWidth() );
m_currentMedia->setHeight( m_mediaPlayer->getHeight() );
m_currentMedia->setFps( static_cast<unsigned int>( m_mediaPlayer->getFps() ) );
m_currentMedia->setFps( m_mediaPlayer->getFps() );
//Setting time for snapshot :
if ( m_currentMedia->getFileType() == Media::Video )
......
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