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

Image files can now be added to the library again.

Metadata are computed correctly.
parent f25082fb
......@@ -50,6 +50,7 @@ void MetaDataWorker::run()
{
computeImageMetaData();
}
m_currentMedia->addConstantParam( ":vout=dummy" );
m_mediaPlayer->setMedia( m_currentMedia->getVLCMedia() );
connect( m_mediaPlayer, SIGNAL( playing() ), this, SLOT( entrypointPlaying() ) );
m_mediaPlayer->play();
......@@ -60,8 +61,6 @@ void MetaDataWorker::computeVideoMetaData()
{
//Disabling audio for this specific use of the media
m_currentMedia->addVolatileParam( ":no-audio", ":audio" );
m_currentMedia->addConstantParam( ":vout=dummy" );
connect( m_mediaPlayer, SIGNAL( lengthChanged() ), this, SLOT( entrypointLengthChanged() ) );
}
......@@ -69,6 +68,8 @@ void MetaDataWorker::computeImageMetaData()
{
m_currentMedia->addVolatileParam( ":access=fake", ":access=''" );
m_currentMedia->addVolatileParam( ":fake-duration=10000", ":fake-duration=''" );
//There can't be a length for an image file, so we don't have to wait for it to be updated.
m_lengthHasChanged = true;
}
void MetaDataWorker::getMetaData()
......
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