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

Use another ref on the producer when saving project (might help in case...

Use another ref on the producer when saving project (might help in case another operation is performed on the producer)
parent 305a6785
Pipeline #32753 passed with stage
in 35 minutes and 48 seconds
......@@ -1292,6 +1292,7 @@ void GLWidget::mouseReleaseEvent(QMouseEvent *event)
void GLWidget::purgeCache()
{
if (m_consumer) {
//m_consumer->set("buffer", 1);
m_consumer->purge();
m_producer->seek(m_proxy->getPosition() + 1);
}
......@@ -1365,7 +1366,8 @@ const QString GLWidget::sceneList(const QString &root, const QString &fullPath)
// Disabling meta creates cleaner files, but then we don't have access to metadata on the fly (meta channels, etc)
// And we must use "avformat" instead of "avformat-novalidate" on project loading which causes a big delay on project opening
// xmlConsumer.set("no_meta", 1);
xmlConsumer.connect(*m_producer.get());
Mlt::Service s(m_producer->get_service());
xmlConsumer.connect(s);
xmlConsumer.run();
playlist = fullPath.isEmpty() ? QString::fromUtf8(xmlConsumer.get("kdenlive_playlist")) : fullPath;
return playlist;
......
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