Commit fcbc2daa authored by chouquette's avatar chouquette

Resolved warnings

parent b8dc542b
......@@ -33,7 +33,7 @@ Media::Media( const QString& filename )
CheckVlcppException(m_ex);
}
Media::Media( const Media& media )
Media::Media( const Media& media ) : Internal<libvlc_media_t>()
{
clone( media );
}
......
......@@ -154,7 +154,7 @@ void Media::addAudioFrame( void* datas, unsigned char* buffer, si
m_audioData.buffSize = buffSize;
int* frame = new int[ m_audioData.buffSize ];
for (int i = 0, u = 0; u < m_audioData.nbSample; i += 4, u++)
for (unsigned int i = 0, u = 0; u < m_audioData.nbSample; i += 4, u++)
{
int value = buffer[i];
value <<= 8;
......
......@@ -49,7 +49,6 @@ MainWorkflow::MainWorkflow( QObject* parent, int trackCount ) :
MainWorkflow::~MainWorkflow()
{
qDebug() << "MainWorkflow::~MainWorkflow()";
delete m_renderStartedLock;
for (unsigned int i = 0; i < m_trackCount; ++i)
delete m_tracks[i];
......@@ -138,7 +137,7 @@ void MainWorkflow::setPosition( float pos )
if ( m_renderStarted == false )
return ;
qint64 frame = (float)m_length * pos;
qint64 frame = static_cast<qint64>( (float)m_length * pos );
m_currentFrame = frame;
emit frameChanged( frame );
//Do not emit a signal for the RenderWidget, since it's the one that triggered that call...
......
......@@ -86,7 +86,7 @@ void ClipPreviewWidget::nextFrame()
{
if ( m_videoStopped == false )
{
qint64 interval = (1.0f / m_mediaPlayer->getFps()) * 1000.0f;
qint64 interval = static_cast<qint64>( (1.0f / m_mediaPlayer->getFps()) * 1000.0f );
m_mediaPlayer->setTime( m_mediaPlayer->getTime() + interval );
}
}
......@@ -95,7 +95,7 @@ void ClipPreviewWidget::previousFrame()
{
if ( m_videoStopped == false )
{
qint64 interval = (1.0f / m_mediaPlayer->getFps()) * 1000.0f;
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