int swidth = (int) (Kdenlive::DefaultThumbHeight * m_profile->width() / m_profile->height() + 0.5);
switch (m_clip->clipType()) {
- case VIDEO:
+ case Video:
case AV:
- case SLIDESHOW:
- case PLAYLIST:
+ case SlideShow:
+ case Playlist:
connect(this, SIGNAL(updateThumb()), m_previewTimer, SLOT(start()));
- case IMAGE:
- case TEXT:
+ break;
+ case Image:
+ case Text:
m_image = KThumb::getFrame(m_producer, m_in->getValue(), swidth, width, Kdenlive::DefaultThumbHeight);
p = QPixmap::fromImage(m_image);
break;
- case COLOR:
+ case Color:
colour = colour.replace(0, 2, "#");
p.fill(QColor(colour.left(7)));
break;
+ //UNKNOWN, AUDIO, VIRTUAL:
default:
p.fill(Qt::black);
}