ClipItem::~ClipItem() {
if (startThumbTimer) delete startThumbTimer;
if (endThumbTimer) delete endThumbTimer;
+ if (m_timeLine) m_timeLine;
}
ClipItem *ClipItem::clone(double scale, ItemInfo info) const {
}
void ClipItem::slotFetchThumbs() {
- m_thumbsRequested += 2;
+ m_thumbsRequested = 2;
emit getThumb((int)m_cropStart.frames(m_fps), (int)(m_cropStart + m_cropDuration).frames(m_fps));
}
}
void ClipItem::slotThumbReady(int frame, QPixmap pix) {
- if (m_thumbsRequested == 0) return;
+ //if (m_thumbsRequested == 0) return;
if (frame == m_cropStart.frames(m_fps)) {
m_startPix = pix;
QRectF r = boundingRect();
r.setRight(pix.width() + 2);
update(r);
- } else {
+ m_thumbsRequested--;
+ } else if (frame == (m_cropStart + m_cropDuration).frames(m_fps)) {
m_endPix = pix;
QRectF r = boundingRect();
r.setLeft(r.right() - pix.width() - 2);
update(r);
+ m_thumbsRequested--;
}
- m_thumbsRequested--;
}
void ClipItem::slotGotAudioData() {