]> git.sesse.net Git - kdenlive/commitdiff
Fix color clip being proxied
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Sun, 13 Feb 2011 00:11:32 +0000 (00:11 +0000)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Sun, 13 Feb 2011 00:11:32 +0000 (00:11 +0000)
svn path=/trunk/kdenlive/; revision=5397

src/projectlist.cpp

index 1c2834ec58a2477bb4f6a864b4a0d560d3b212f2..da8b443bbfe0346f8b42f1cdf3c42117921721ac 100644 (file)
@@ -1564,15 +1564,13 @@ void ProjectList::slotReplyGetFileProperties(const QString &clipId, Mlt::Produce
             toReload = clipId;
         }
         if (!useProxy() && item->referencedClip()->getProperty("proxy").isEmpty()) setProxyStatus(item, 0);
-        QString type = properties.value("type");
         QString size = properties.value("frame_size");
         DocClipBase *clip = item->referencedClip();
-        if (useProxy() && (type == "video" || type == "av") && generateProxy() && size.section('x', 0, 0).toInt() > proxyMinSize()) {
+        if (useProxy() && (item->clipType() == AV || item->clipType() == VIDEO) && generateProxy() && size.section('x', 0, 0).toInt() > proxyMinSize()) {
             if (clip->getProperty("proxy").isEmpty()) {
                 connect(clip, SIGNAL(proxyReady(const QString&, bool)), this, SLOT(slotGotProxy(const QString&, bool)));
                 setProxyStatus(item, 1);
                 clip->generateProxy(m_doc->projectFolder(), proxyParams());
-                
             }
         }
         clip->setProducer(producer, replace);