Fixed bad fallback on content detection for ogg files, fixes #715

This commit is contained in:
emeric
2025-07-19 17:44:37 +02:00
parent 37c75f8677
commit b620dc8650
+1 -1
View File
@@ -111,7 +111,7 @@ namespace lms::metadata::taglib::utils
file = std::make_unique<TagLib::MPEG::File>(stream, TagLib::ID3v2::FrameFactory::instance(), readAudioProperties, audioPropertiesStyle); file = std::make_unique<TagLib::MPEG::File>(stream, TagLib::ID3v2::FrameFactory::instance(), readAudioProperties, audioPropertiesStyle);
// VORBIS // VORBIS
else if (ext == "OGG") else if (ext == "OGG")
return std::make_unique<TagLib::Ogg::Vorbis::File>(stream, readAudioProperties, audioPropertiesStyle); file = std::make_unique<TagLib::Ogg::Vorbis::File>(stream, readAudioProperties, audioPropertiesStyle);
else if (ext == "OGA") else if (ext == "OGA")
{ {
/* .oga can be any audio in the Ogg container. First try FLAC, then Vorbis. */ /* .oga can be any audio in the Ogg container. First try FLAC, then Vorbis. */