Fix monitor corruption on autosave

parent 699bba9e
...@@ -1342,18 +1342,12 @@ const QString GLWidget::sceneList(const QString &root, const QString &fullPath) ...@@ -1342,18 +1342,12 @@ const QString GLWidget::sceneList(const QString &root, const QString &fullPath)
if (!xmlConsumer.is_valid()) { if (!xmlConsumer.is_valid()) {
return QString(); return QString();
} }
m_producer->optimise();
xmlConsumer.set("terminate_on_pause", 1);
xmlConsumer.set("store", "kdenlive"); xmlConsumer.set("store", "kdenlive");
xmlConsumer.set("time_format", "clock"); xmlConsumer.set("time_format", "clock");
// Disabling meta creates cleaner files, but then we don't have access to metadata on the fly (meta channels, etc) // 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 // 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.set("no_meta", 1);
Mlt::Producer prod(m_producer->get_producer()); xmlConsumer.connect(*m_producer.get());
if (!prod.is_valid()) {
return QString();
}
xmlConsumer.connect(prod);
xmlConsumer.run(); xmlConsumer.run();
playlist = fullPath.isEmpty() ? QString::fromUtf8(xmlConsumer.get("kdenlive_playlist")) : fullPath; playlist = fullPath.isEmpty() ? QString::fromUtf8(xmlConsumer.get("kdenlive_playlist")) : fullPath;
return playlist; 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