[vlmc-devel] ConsoleRenderer: Use Project's video settings

Yikai Lu git at videolan.org
Tue Apr 12 15:56:35 CEST 2016


vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Mon Apr 11 15:09:19 2016 +0900| [31ac06afb0234686a00a5e36daf5ff2299057cf3] | committer: Hugo Beauzée-Luyssen

ConsoleRenderer: Use Project's video settings

Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

> https://code.videolan.org/videolan/vlmc/commit/31ac06afb0234686a00a5e36daf5ff2299057cf3
---

 src/Renderer/ConsoleRenderer.cpp | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/Renderer/ConsoleRenderer.cpp b/src/Renderer/ConsoleRenderer.cpp
index 275d4ed..48858fc 100644
--- a/src/Renderer/ConsoleRenderer.cpp
+++ b/src/Renderer/ConsoleRenderer.cpp
@@ -23,7 +23,7 @@
 #include "ConsoleRenderer.h"
 
 #include "WorkflowFileRenderer.h"
-#include "SettingsManager.h"
+#include "Project/Project.h"
 
 #include <QCoreApplication>
 #include <QStringList>
@@ -34,11 +34,11 @@ ConsoleRenderer::ConsoleRenderer(QObject *parent) :
     m_renderer = new WorkflowFileRenderer;
     m_renderer->initializeRenderer();
     m_outputFileName = qApp->arguments()[2];
-    m_width = VLMC_PROJECT_GET_UINT( "video/VideoProjectWidth" );
-    m_height = VLMC_PROJECT_GET_UINT( "video/VideoProjectHeight" );
-    m_fps = VLMC_PROJECT_GET_DOUBLE( "video/VLMCOutputFPS" );
-    m_vbitrate = 4000;
-    m_abitrate = 256;
+    m_width = Core::instance()->project()->width();
+    m_height = Core::instance()->project()->height();
+    m_fps = Core::instance()->project()->fps();
+    m_vbitrate = Core::instance()->project()->videoBitrate();
+    m_abitrate = Core::instance()->project()->audioBitrate();
     connect( m_renderer, SIGNAL( frameChanged( qint64 ) ),
              this, SLOT( frameChanged( qint64 ) ) );
     connect( m_renderer, SIGNAL( renderComplete() ), qApp, SLOT( quit() ) );



More information about the Vlmc-devel mailing list