Commit 8d9eb2fb authored by Hugo Beauzee-Luyssen's avatar Hugo Beauzee-Luyssen

Removed a bug introduced when switched back to VLC 1.0-bugfix

Now we can have more than one media loaded...
parent 2cf157ac
......@@ -88,8 +88,11 @@ void MetaDataManager::run()
void MetaDataManager::getMetaData()
{
qDebug() << "getMetaData();";
m_mediaIsPlaying = false;
m_lengthHasChanged = false;
//TODO: restore this when VLC1.1 comes out.
// m_lengthHasChanged = false;
m_lengthHasChanged = true;
m_nextMedia = true;
m_currentClip->setLength( m_mediaPlayer->getLength() );
......@@ -212,6 +215,7 @@ void MetaDataManager::entrypointLengthChanged()
void MetaDataManager::entrypointPlaying()
{
disconnect( m_mediaPlayer, SIGNAL( playing() ), this, SLOT( entrypointPlaying() ) );
qDebug() << "Playing the media";
m_mediaIsPlaying = true;
if ( m_lengthHasChanged == true )
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