Commit f32f9d9f authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix unconfigured consumer causing various crashes.

CCBUG: 409667
parent 20d67257
......@@ -216,6 +216,7 @@ void GLWidget::initializeGL()
connect(m_frameRenderer, &FrameRenderer::frameDisplayed, this, &GLWidget::frameDisplayed, Qt::QueuedConnection);
m_initSem.release();
m_isInitialized = true;
QMetaObject::invokeMethod(this, "reconfigure", Qt::QueuedConnection);
}
void GLWidget::resizeGL(int width, int height)
......
......@@ -86,7 +86,6 @@ public:
// TODO: currently unused
int reconfigureMulti(const QString &params, const QString &path, Mlt::Profile *profile);
void stopCapture();
int reconfigure();
/** @brief Get the current MLT producer playlist.
* @return A string describing the playlist */
const QString sceneList(const QString &root, const QString &fullPath = QString(), QString filterData = QString());
......@@ -253,6 +252,7 @@ private slots:
void updateTexture(GLuint yName, GLuint uName, GLuint vName);
void paintGL();
void onFrameDisplayed(const SharedFrame &frame);
int reconfigure();
void refresh();
protected:
......
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