Skip to content

Commit

Permalink
Song: Handle MP2 in Song::FiletypeByDescription
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaski committed Oct 21, 2023
1 parent 7bf4ad3 commit 2bb09cf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/song.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1095,6 +1095,7 @@ Song::FileType Song::FiletypeByDescription(const QString &text) {
else if (text.compare("Vorbis", Qt::CaseInsensitive) == 0) return FileType::OggVorbis;
else if (text.compare("Opus", Qt::CaseInsensitive) == 0) return FileType::OggOpus;
else if (text.compare("Speex", Qt::CaseInsensitive) == 0) return FileType::OggSpeex;
else if (text.compare("MPEG-1 Layer 2 (MP2)", Qt::CaseInsensitive) == 0) return FileType::MPEG;
else if (text.compare("MPEG-1 Layer 3 (MP3)", Qt::CaseInsensitive) == 0) return FileType::MPEG;
else if (text.compare("MPEG-4 AAC", Qt::CaseInsensitive) == 0) return FileType::MP4;
else if (text.compare("WMA", Qt::CaseInsensitive) == 0) return FileType::ASF;
Expand Down

0 comments on commit 2bb09cf

Please sign in to comment.