switching to thumbnails from rust
This commit is contained in:
parent
30e552aa3d
commit
1ca9ab5fc4
2 changed files with 38 additions and 60 deletions
|
@ -718,7 +718,7 @@ QString SlideModel::thumbnailVideoRust(QString video, int serviceItemId, int ind
|
|||
QFileInfo thumbnailInfo(dir.path() + "/" + vidName + ".jpg");
|
||||
qDebug() << thumbnailInfo.filePath() << "FOR" << index;
|
||||
if (thumbnailInfo.exists()) {
|
||||
slideModel->addVideoThumbnail("file://" + thumbnailInfo.absoluteFilePath(), serviceItemId, index);
|
||||
// slideModel->addVideoThumbnail("file://" + thumbnailInfo.absoluteFilePath(), serviceItemId, index);
|
||||
return thumbnailInfo.filePath();
|
||||
}
|
||||
|
||||
|
@ -740,7 +740,7 @@ QString SlideModel::thumbnailVideoRust(QString video, int serviceItemId, int ind
|
|||
qDebug() << QStringLiteral("Failed to save thumbnail for file: %1").arg(video);
|
||||
}
|
||||
|
||||
slideModel->addVideoThumbnail("file://" + thumbnailInfo.absoluteFilePath(), serviceItemId, index);
|
||||
// slideModel->addVideoThumbnail("file://" + thumbnailInfo.absoluteFilePath(), serviceItemId, index);
|
||||
|
||||
return thumbnailInfo.filePath();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue