[vlmc-devel] [PATCH 7/7] WorkflowRenderer: Configure a temporary FileTarget
Hugo Beauzée-Luyssen
hugo at beauzee.fr
Sun Apr 17 09:33:28 CEST 2016
On 04/16/2016 08:22 AM, Yikai Lu wrote:
> ---
> src/Renderer/WorkflowRenderer.cpp | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/src/Renderer/WorkflowRenderer.cpp b/src/Renderer/WorkflowRenderer.cpp
> index 7056555..77d524f 100644
> --- a/src/Renderer/WorkflowRenderer.cpp
> +++ b/src/Renderer/WorkflowRenderer.cpp
> @@ -35,6 +35,7 @@
> #include "GenericRenderer.h"
> #include "Backend/IBackend.h"
> #include "Backend/ISource.h"
> +#include "Backend/Target/FileTarget.h"
> #include "Workflow/MainWorkflow.h"
> #include "Gui/preview/RenderWidget.h"
> #include "Settings/Settings.h"
> @@ -227,7 +228,10 @@ WorkflowRenderer::startRenderToFile( const QString& outputFileName, quint32 widt
> m_aspectRatio = ar;
>
> setupRenderer();
> - m_sourceRenderer->setOutputFile( qPrintable( outputFileName ) );
> +
> + Backend::FileTarget fileTarget( qPrintable( outputFileName ) );
> + fileTarget.configure( m_sourceRenderer );
> +
> m_sourceRenderer->setOutputAudioBitrate( abitrate );
> m_sourceRenderer->setOutputVideoBitrate( vbitrate );
> connect( m_mainWorkflow, &MainWorkflow::mainWorkflowEndReached, this, &WorkflowRenderer::renderComplete );
>
Why not using setRenderTarget? I agree that this should work, but it
seems inconsistent with your previous commit
Regards,
More information about the Vlmc-devel
mailing list