mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-02-02 10:36:45 +01:00
Close MediaFileInfo
This commit is contained in:
parent
b1640d3626
commit
f36997c7c5
@ -80,7 +80,10 @@ bool TagReaderTagParser::IsMediaFile(const QString &filename) const {
|
|||||||
|
|
||||||
const auto tracks = taginfo.tracks();
|
const auto tracks = taginfo.tracks();
|
||||||
for (const auto track : tracks) {
|
for (const auto track : tracks) {
|
||||||
if (track->mediaType() == TagParser::MediaType::Audio) return true;
|
if (track->mediaType() == TagParser::MediaType::Audio) {
|
||||||
|
taginfo.close();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
taginfo.close();
|
taginfo.close();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user