Commit 77a08157 authored by Hugo Beauzee-Luyssen's avatar Hugo Beauzee-Luyssen

Rendering to a file doesn't crash anymore

Warning: I'm not saying that it worked... just that i doesn't crash :D
parent 11f97f6e
......@@ -30,19 +30,20 @@ void WorkflowFileRenderer::run()
m_mediaPlayer->setMedia( m_media );
connect( m_mediaPlayer, SIGNAL( stopped() ), this, SLOT( stop() ) );
connect( m_mainWorkflow, SIGNAL( mainWorkflowEndReached() ), this, SLOT( stop() ) );
connect( m_mainWorkflow, SIGNAL( positionChanged( float ) ), this, SLOT( positionChanged( float ) ) );
m_dialog->show();
m_isRendering = true;
m_stopping = false;
m_mainWorkflow->startRender();
m_mediaPlayer->play();
}
void WorkflowFileRenderer::stop()
{
qDebug() << "Stopping file renderer";
WorkflowRenderer::stop();
m_dialog->done( 0 );
}
......
......@@ -29,9 +29,9 @@
WorkflowRenderer::WorkflowRenderer() :
m_mainWorkflow( MainWorkflow::getInstance() ),
m_stopping( false ),
m_pauseAsked( false ),
m_unpauseAsked( false ),
m_stopping( false )
m_unpauseAsked( false )
{
char buffer[64];
......
......@@ -72,6 +72,8 @@ class WorkflowRenderer : public GenericRenderer
protected:
MainWorkflow* m_mainWorkflow;
LibVLCpp::Media* m_media;
bool m_stopping;
private:
unsigned char* m_lastFrame;
QStack<Actions> m_actions;
......@@ -80,7 +82,6 @@ class WorkflowRenderer : public GenericRenderer
bool m_unpauseAsked;
QMutex* m_condMutex;
QWaitCondition* m_waitCond;
bool m_stopping;
public slots:
void setClip( Clip* ){}
......
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