From 6a00e6e1cea6551345d64e8c74b4939f767e4a61 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Mardelle Date: Wed, 10 Oct 2012 17:10:44 +0200 Subject: [PATCH] Fix proxy clips for playlists distortion --- src/projectlist.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/projectlist.cpp b/src/projectlist.cpp index b6358b8c..d60e3081 100644 --- a/src/projectlist.cpp +++ b/src/projectlist.cpp @@ -2724,8 +2724,12 @@ void ProjectList::slotCreateProxy(const QString id) slotGotProxy(path); return; } - - ProxyJob *job = new ProxyJob(item->clipType(), id, QStringList() << path << item->clipUrl().path() << item->referencedClip()->producerProperty("_exif_orientation") << m_doc->getDocumentProperty("proxyparams").simplified() << QString::number(m_render->frameRenderWidth()) << QString::number(m_render->renderHeight())); + QString sourcePath = item->clipUrl().path(); + if (item->clipType() == PLAYLIST) { + // Special case: playlists use the special 'consumer' producer to support resizing + sourcePath.prepend("consumer:"); + } + ProxyJob *job = new ProxyJob(item->clipType(), id, QStringList() << path << sourcePath << item->referencedClip()->producerProperty("_exif_orientation") << m_doc->getDocumentProperty("proxyparams").simplified() << QString::number(m_render->frameRenderWidth()) << QString::number(m_render->renderHeight())); if (job->isExclusive() && hasPendingJob(item, job->jobType)) { delete job; return; -- 2.39.2