Skip to content

Commit

Permalink
SoundSourceProxy::isFileSupported now also checks the MIME TYPE
Browse files Browse the repository at this point in the history
  • Loading branch information
daschuer committed May 5, 2024
1 parent 4ddd3e4 commit a6033ae
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/sources/soundsourceproxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,10 @@ bool SoundSourceProxy::isUrlSupported(const QUrl& url) {

// static
bool SoundSourceProxy::isFileSupported(const mixxx::FileInfo& fileInfo) {
return isFileNameSupported(fileInfo.fileName());
const QString fileType =
mixxx::SoundSource::getTypeFromFile(fileInfo.asQFileInfo());
qDebug() << "isFileSupported" << fileType;
return isFileTypeSupported(fileType);
}

// static
Expand Down

0 comments on commit a6033ae

Please sign in to comment.