Commit 16671865 authored by Tobias Fella's avatar Tobias Fella Committed by Nate Graham
Browse files

Fix crash in metadata extraction

BUG: 461750


(cherry picked from commit 794dadfc)
parent 8b829a29
Pipeline #266858 passed with stage
in 12 minutes and 11 seconds
......@@ -423,7 +423,8 @@ QVariantMap MediaPlayer2Player::getMetadataOfCurrentTrack()
#if KF5FileMetaData_FOUND
const auto &mimeType = QMimeDatabase().mimeTypeForFile(m_manageHeaderBar->image().toString().mid(14)).name();
auto extractors = KFileMetaData::ExtractorCollection().fetchExtractors(mimeType);
KFileMetaData::ExtractorCollection extractorCollection;
auto extractors = extractorCollection.fetchExtractors(mimeType);
QMap<KFileMetaData::EmbeddedImageData::ImageType, QByteArray> imageData;
for (const auto &extractor : extractors) {
......
Supports Markdown
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