[vlmc-devel] ConsoleRenderer: Don't remember rendering parameters.

Yikai Lu git at videolan.org
Sat Jun 4 11:47:52 CEST 2016


vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Sun May 22 15:17:02 2016 +0900| [79695e832ee6da33768f6549a8b7ae4d2b9feba3] | committer: Hugo Beauzée-Luyssen

ConsoleRenderer: Don't remember rendering parameters.

> https://code.videolan.org/videolan/vlmc/commit/79695e832ee6da33768f6549a8b7ae4d2b9feba3
---

 src/Renderer/ConsoleRenderer.cpp | 16 +++++++++-------
 src/Renderer/ConsoleRenderer.h   |  6 ------
 2 files changed, 9 insertions(+), 13 deletions(-)

diff --git a/src/Renderer/ConsoleRenderer.cpp b/src/Renderer/ConsoleRenderer.cpp
index 164881d..ee45730 100644
--- a/src/Renderer/ConsoleRenderer.cpp
+++ b/src/Renderer/ConsoleRenderer.cpp
@@ -33,12 +33,6 @@ ConsoleRenderer::ConsoleRenderer(QObject *parent) :
     QObject(parent)
 {
     m_outputFileName = qApp->arguments()[2];
-    m_width = Core::instance()->project()->width();
-    m_height = Core::instance()->project()->height();
-    m_fps = Core::instance()->project()->fps();
-    m_ar = Core::instance()->project()->aspectRatio();
-    m_vbitrate = Core::instance()->project()->videoBitrate();
-    m_abitrate = Core::instance()->project()->audioBitrate();
     connect( Core::instance()->workflow(), &MainWorkflow::frameChanged,
              this, &ConsoleRenderer::frameChanged);
     connect( Core::instance()->workflowRenderer(), SIGNAL( renderComplete() ), qApp, SLOT( quit() ) );
@@ -61,5 +55,13 @@ ConsoleRenderer::frameChanged( qint64 frame ) const
 void
 ConsoleRenderer::startRender()
 {
-    Core::instance()->workflowRenderer()->startRenderToFile( m_outputFileName, m_width, m_height, m_fps, m_ar, m_vbitrate, m_abitrate );
+    auto project = Core::instance()->project();
+    Core::instance()->workflowRenderer()->startRenderToFile( m_outputFileName,
+                                                             project->width(),
+                                                             project->height(),
+                                                             project->fps(),
+                                                             project->aspectRatio(),
+                                                             project->videoBitrate(),
+                                                             project->audioBitrate()
+                                                             );
 }
diff --git a/src/Renderer/ConsoleRenderer.h b/src/Renderer/ConsoleRenderer.h
index 5b3c9cb..87306de 100644
--- a/src/Renderer/ConsoleRenderer.h
+++ b/src/Renderer/ConsoleRenderer.h
@@ -44,12 +44,6 @@ private slots:
 private:
     WorkflowFileRenderer    *m_renderer;
     QString                 m_outputFileName;
-    quint32                 m_width;
-    quint32                 m_height;
-    double                  m_fps;
-    quint32                 m_vbitrate;
-    quint32                 m_abitrate;
-    QString                 m_ar;
 };
 
 #endif // CONSOLERENDERER_H



More information about the Vlmc-devel mailing list