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

Enabling audio for VLCInstance, Disabling audio for snapshots.

VLC config files aren't loaded anymore. ("--ignore-config")
parent 27a25c43
...@@ -34,9 +34,9 @@ Instance::Instance() ...@@ -34,9 +34,9 @@ Instance::Instance()
{ {
//"-vvvvv", //"-vvvvv",
"--no-skip-frames", "--no-skip-frames",
"--no-audio", //"--no-audio",
//"--plugin-path", VLC_TREE "/modules", //"--plugin-path", VLC_TREE "/modules",
//"--ignore-config", //Don't use VLC's config files "--ignore-config", //Don't use VLC's config files
}; };
int argc = sizeof( argv ) / sizeof( *argv ); int argc = sizeof( argv ) / sizeof( *argv );
......
...@@ -41,7 +41,12 @@ void MetaDataManager::run() ...@@ -41,7 +41,12 @@ void MetaDataManager::run()
m_currentClip = m_mediaList.front(); m_currentClip = m_mediaList.front();
m_mediaList.pop_front(); m_mediaList.pop_front();
//Disabling audio for this specific use of the media
m_currentClip->addParam( ":no-audio" );
m_currentClip->flushParameters(); m_currentClip->flushParameters();
//And re-enable it to prevent the audio to be disabled anywhere else.
m_currentClip->addParam( ":audio" );
m_mediaPlayer->setMedia( m_currentClip->getVLCMedia() ); m_mediaPlayer->setMedia( m_currentClip->getVLCMedia() );
m_mediaPlayer->play(); m_mediaPlayer->play();
......
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