Don't attempt to create hover preview for non AV clips

parent ef9cf6b9
Pipeline #5183 passed with stage
in 26 minutes and 5 seconds
......@@ -3194,7 +3194,7 @@ void Bin::showBinFrame(QModelIndex ix, int frame)
std::shared_ptr<AbstractProjectItem> item = m_itemModel->getBinItemByIndex(m_proxyModel->mapToSource(ix));
if (item && item->itemType() == AbstractProjectItem::ClipItem) {
auto clip = std::static_pointer_cast<ProjectClip>(item);
if (clip) {
if (clip && (clip->clipType() == ClipType::AV || clip->clipType() == ClipType::Video)) {
clip->getThumbFromPercent(frame);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment