Skip to content

Commit

Permalink
fix thumbnail cache spoiled by Settings > Time Format
Browse files Browse the repository at this point in the history
  • Loading branch information
ddennedy committed Dec 21, 2024
1 parent bffe81c commit f79f82a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/models/playlistmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class UpdateThumbnailTask : public QRunnable

QString cacheKey(int frameNumber)
{
QString time = m_producer.frames_to_time(frameNumber, Settings.timeFormat());
QString time = m_producer.frames_to_time(frameNumber, mlt_time_clock);
// Reduce the precision to centiseconds to increase chance for cache hit
// without much loss of accuracy.
time = time.left(time.size() - 1);
Expand Down Expand Up @@ -163,9 +163,6 @@ class UpdateThumbnailTask : public QRunnable
return QImage();
}
}

signals:
void thumbnailUpdated(int row);
};

PlaylistModel::PlaylistModel(QObject *parent)
Expand Down

0 comments on commit f79f82a

Please sign in to comment.