m_thumbFile = m_clipManager->projectFolder() + "/thumbs/" + hash + ".thumb";
}
-void KThumb::updateClipUrl(KUrl url, const QString &hash)
+void KThumb::updateClipUrl(const KUrl &url, const QString &hash)
{
m_url = url;
m_thumbFile = m_clipManager->projectFolder() + "/thumbs/" + hash + ".thumb";
if (ow % 2 == 1) ow++;
QImage image(ow, oh, QImage::Format_ARGB32_Premultiplied);
const uchar* imagedata = frame->get_image(format, ow, oh);
+ if (imagedata == NULL) {
+ p.fill(QColor(Qt::red).rgb());
+ return p;
+ }
memcpy(image.bits(), imagedata, ow * oh * 4);//.byteCount());
//const uchar* imagedata = frame->get_image(format, ow, oh);