[vlmc-devel] Renderers: Use a non-global setting to disable title
Hugo Beauzée-Luyssen
git at videolan.org
Tue Jan 28 23:33:34 CET 2014
vlmc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Tue Jan 28 22:34:13 2014 +0200| [f4baa50fcbdad060cf25890d9692d1ced747bf9b] | committer: Hugo Beauzée-Luyssen
Renderers: Use a non-global setting to disable title
> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=f4baa50fcbdad060cf25890d9692d1ced747bf9b
---
src/LibVLCpp/VLCInstance.cpp | 1 -
src/Renderer/GenericRenderer.cpp | 1 +
src/Workflow/ClipWorkflow.cpp | 1 +
3 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/LibVLCpp/VLCInstance.cpp b/src/LibVLCpp/VLCInstance.cpp
index e6bcc44..911291a 100644
--- a/src/LibVLCpp/VLCInstance.cpp
+++ b/src/LibVLCpp/VLCInstance.cpp
@@ -37,7 +37,6 @@ Instance::Instance( QObject* parent /*= NULL*/ ) : QObject( parent )
"--no-skip-frames",
"--text-renderer", "dummy",
"--vout", "dummy",
- "--no-video-title-show", // Don't display the filename
"--no-sub-autodetect-file", // Don't detect subtitles
//"--no-audio",
//"--plugin-path", VLC_TREE "/modules",
diff --git a/src/Renderer/GenericRenderer.cpp b/src/Renderer/GenericRenderer.cpp
index fe005c3..3cc5799 100644
--- a/src/Renderer/GenericRenderer.cpp
+++ b/src/Renderer/GenericRenderer.cpp
@@ -29,6 +29,7 @@ GenericRenderer::GenericRenderer() :
m_paused( false )
{
m_mediaPlayer = new LibVLCpp::MediaPlayer();
+ m_mediaPlayer->disableTitle();
}
GenericRenderer::~GenericRenderer()
diff --git a/src/Workflow/ClipWorkflow.cpp b/src/Workflow/ClipWorkflow.cpp
index 5f13beb..15dd794 100644
--- a/src/Workflow/ClipWorkflow.cpp
+++ b/src/Workflow/ClipWorkflow.cpp
@@ -66,6 +66,7 @@ ClipWorkflow::initialize()
m_vlcMedia->addOption( createSoutChain() );
m_mediaPlayer = MemoryPool<LibVLCpp::MediaPlayer>::getInstance()->get();
m_mediaPlayer->setMedia( m_vlcMedia );
+ m_mediaPlayer->disableTitle();
m_currentPts = -1;
m_previousPts = -1;
More information about the Vlmc-devel
mailing list