Try to improve thumbnailing on macOS
This commit is contained in:
parent
30ba387076
commit
447a3d4cb9
@ -879,7 +879,11 @@ MediaUpload::MediaUpload(std::unique_ptr<QIODevice> source_,
|
||||
}
|
||||
nhlog::ui()->debug("Duration changed {}", duration);
|
||||
});
|
||||
mediaPlayer->setMedia(QMediaContent(originalFilename_), source.get());
|
||||
|
||||
auto originalFile = qobject_cast<QFile *>(source.get());
|
||||
|
||||
mediaPlayer->setMedia(
|
||||
QMediaContent(originalFile ? originalFile->fileName() : originalFilename_), source.get());
|
||||
|
||||
mediaPlayer->play();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user