Fixed bad fallback on content detection for ogg files, fixes #715
This commit is contained in:
@@ -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. */
|
||||||
|
|||||||
Reference in New Issue
Block a user