]> git.sesse.net Git - kdenlive/blobdiff - src/renderer.cpp
* Fix missing proxy not re-created on project opening
[kdenlive] / src / renderer.cpp
index 16914aa3d3ce7ef16abf17b379d9117b7627cdce..aaea3fe7cd7b9e08b2574ed150ebcd4fbd691e6a 100644 (file)
@@ -644,7 +644,14 @@ void Render::processFileProperties()
         bool proxyProducer;
         if (info.xml.hasAttribute("proxy") && info.xml.attribute("proxy") != "-") {
             path = info.xml.attribute("proxy");
-            proxyProducer = true;
+            // Check for missing proxies
+            if (QFileInfo(path).size() <= 0) {
+                // proxy is missing, re-create it
+                emit requestProxy(info.clipId);
+                proxyProducer = false;
+                path = info.xml.attribute("resource");
+            }
+            else proxyProducer = true;
         }
         else {
             path = info.xml.attribute("resource");