Commit 5d44207f authored by Ludovic Fauvet's avatar Ludovic Fauvet

Do not set snapshot if it's null

parent 81a555cf
......@@ -83,7 +83,11 @@ void MetaDataManager::renderSnapshot()
void MetaDataManager::setSnapshot()
{
m_currentClip->setSnapshot( new QPixmap( m_tmpSnapshotFilename ) );
QPixmap* pixmap = new QPixmap( m_tmpSnapshotFilename );
if ( pixmap->isNull() )
delete pixmap;
else
m_currentClip->setSnapshot( pixmap );
disconnect( this, SLOT( setSnapshot() ) );
m_mediaPlayer->stop();
}
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