X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fprojectlist.cpp;h=c6f7368b89fae086a5e70dd0c1eb2ca2cc54a8a8;hb=bb0f02c5c83c9b19d7442e86f1b392fba1de9624;hp=7f36c74d71d45e19f6bc441877c2a22dc02ea069;hpb=12a5d89680803b84dc83a52f7eb8805cccb865a8;p=kdenlive diff --git a/src/projectlist.cpp b/src/projectlist.cpp index 7f36c74d..c6f7368b 100644 --- a/src/projectlist.cpp +++ b/src/projectlist.cpp @@ -733,6 +733,10 @@ void ProjectList::slotMissingClip(const QString &id) if (item) { item->setFlags(Qt::ItemIsSelectable | Qt::ItemIsEnabled | Qt::ItemIsDropEnabled); int height = m_listView->iconSize().height(); + if (m_render == NULL) { + kDebug() << "********* ERROR, NULL RENDR"; + return; + } int width = (int)(height * m_render->dar()); QPixmap pixmap = qVariantValue(item->data(0, Qt::DecorationRole)); if (pixmap.isNull()) { @@ -746,10 +750,6 @@ void ProjectList::slotMissingClip(const QString &id) item->setData(0, Qt::DecorationRole, pixmap); if (item->referencedClip()) { item->referencedClip()->setPlaceHolder(true); - if (m_render == NULL) { - kDebug() << "********* ERROR, NULL RENDR"; - return; - } Mlt::Producer *newProd = m_render->invalidProducer(id); if (item->referencedClip()->getProducer()) { Mlt::Properties props(newProd->get_properties());