svn path=/trunk/kdenlive/; revision=5772
return;
}
if (item->isProxyRunning()) m_abortProxy.append(item->referencedClip()->getProperty("proxy"));
return;
}
if (item->isProxyRunning()) m_abortProxy.append(item->referencedClip()->getProperty("proxy"));
- kDebug()<<"ABORT PX: "<<m_abortProxy;
m_listView->blockSignals(true);
QTreeWidgetItem *newSelectedItem = m_listView->itemAbove(item);
if (!newSelectedItem)
m_listView->blockSignals(true);
QTreeWidgetItem *newSelectedItem = m_listView->itemAbove(item);
if (!newSelectedItem)
void ProjectList::slotCreateProxy(const QString id)
{
ProjectItem *item = getItemById(id);
void ProjectList::slotCreateProxy(const QString id)
{
ProjectItem *item = getItemById(id);
- kDebug()<<"// CREATE PXY FOR: "<<id;
if (!item || item->isProxyRunning() || item->referencedClip()->isPlaceHolder()) return;
if (!item || item->isProxyRunning() || item->referencedClip()->isPlaceHolder()) return;
- kDebug()<<"// CREATE PXY FOR....2";
QString path = item->referencedClip()->getProperty("proxy");
if (path.isEmpty()) {
QString path = item->referencedClip()->getProperty("proxy");
if (path.isEmpty()) {
- kDebug()<<"// CREATE PXY FOR....3";
setProxyStatus(path, PROXYCRASHED);
return;
}
setProxyStatus(path, PROXYCRASHED);
return;
}
- kDebug()<<"// CREATE PXY FOR....4";
setProxyStatus(path, PROXYWAITING);
if (m_abortProxy.contains(path)) m_abortProxy.removeAll(path);
if (m_processingProxy.contains(path)) {
setProxyStatus(path, PROXYWAITING);
if (m_abortProxy.contains(path)) m_abortProxy.removeAll(path);
if (m_processingProxy.contains(path)) {
slotGotProxy(path);
return;
}
slotGotProxy(path);
return;
}
- kDebug()<<"// CREATE PXY FOR....5";
m_processingProxy.append(path);
QtConcurrent::run(this, &ProjectList::slotGenerateProxy, path, item->clipUrl().path(), item->clipType(), QString(item->referencedClip()->producerProperty("_exif_orientation")).toInt());
}
m_processingProxy.append(path);
QtConcurrent::run(this, &ProjectList::slotGenerateProxy, path, item->clipUrl().path(), item->clipType(), QString(item->referencedClip()->producerProperty("_exif_orientation")).toInt());
}
{
emit projectModified();
// Make sure proxy path is writable
{
emit projectModified();
// Make sure proxy path is writable
- kDebug()<<"// RDY FR PXY: "<<destPath;
QFile file(destPath);
if (!file.open(QIODevice::WriteOnly)) {
setProxyStatus(destPath, PROXYCRASHED);
QFile file(destPath);
if (!file.open(QIODevice::WriteOnly)) {
setProxyStatus(destPath, PROXYCRASHED);