double maxh = br.height() / 100.0 * m_keyframeFactor;
if (m_keyframes.count() > 0) {
QMap<int, int>::const_iterator i = m_keyframes.constBegin();
- double x1;
- double y1;
while (i != m_keyframes.constEnd()) {
- x1 = br.x() + maxw * (i.key() - cropStart().frames(m_fps));
- y1 = br.bottom() - (i.value() - m_keyframeOffset) * maxh;
+ double x1 = br.x() + maxw * (i.key() - cropStart().frames(m_fps));
+ double y1 = br.bottom() - (i.value() - m_keyframeOffset) * maxh;
if (qAbs(pos.x() - x1) < maxOffset && qAbs(pos.y() - y1) < 10) {
setToolTip('[' + QString::number((GenTime(i.key(), m_fps) - cropStart()).seconds(), 'f', 2) + i18n("seconds") + ", " + QString::number(i.value(), 'f', 1) + ']');
return i.key();
}
int last_val = 0;
- int val = 0;
double framesPerSecond = mlt_producer_get_fps(producer.get_producer());
Mlt::Frame *mlt_frame;
for (int z = (int) frame; z < (int)(frame + lengthInFrames) && producer.is_valid() && !m_abortAudioThumb; z++) {
- val = (int)((z - frame) / (frame + lengthInFrames) * 100.0);
+ int val = (int)((z - frame) / (frame + lengthInFrames) * 100.0);
if (last_val != val && val > 1) {
setThumbsProgress(i18n("Creating audio thumbnail for %1", url.fileName()), val);
last_val = val;
bool ClipManager::isOnRemovableDevice(const KUrl &url)
{
- SolidVolumeInfo volume;
+ //SolidVolumeInfo volume;
QString path = url.path(KUrl::RemoveTrailingSlash);
int volumeMatch = 0;
if (length > volumeMatch)
{
volumeMatch = v.path.length();
- volume = v;
+ //volume = v;
}
}
}