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

Fix compile warning/possible crash

parent 4e1db7e6
Pipeline #181382 failed with stage
in 6 minutes and 1 second
......@@ -897,7 +897,7 @@ int GLWidget::setProducer(const QString &file)
m_producer.reset();
}
m_producer = std::make_shared<Mlt::Producer>(new Mlt::Producer(pCore->getCurrentProfile()->profile(), nullptr, file.toUtf8().constData()));
if (!m_producer && !m_producer->is_valid()) {
if (!m_producer || !m_producer->is_valid()) {
m_producer.reset();
m_producer = m_blackClip;
}
......
Supports Markdown
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