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

Fix startup crash with preview scaling enabled

parent 749d5e59
......@@ -672,8 +672,10 @@ void GLWidget::refresh()
{
m_refreshTimer.stop();
QMutexLocker locker(&m_mltMutex);
restartConsumer();
m_consumer->set("refresh", 1);
if (m_consumer) {
restartConsumer();
m_consumer->set("refresh", 1);
}
}
bool GLWidget::checkFrameNumber(int pos, int offset, bool isPlaying)
......
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