Skip to content

Commit a6033ae

Browse files
committed
SoundSourceProxy::isFileSupported now also checks the MIME TYPE
1 parent 4ddd3e4 commit a6033ae

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/sources/soundsourceproxy.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,10 @@ bool SoundSourceProxy::isUrlSupported(const QUrl& url) {
284284

285285
// static
286286
bool SoundSourceProxy::isFileSupported(const mixxx::FileInfo& fileInfo) {
287-
return isFileNameSupported(fileInfo.fileName());
287+
const QString fileType =
288+
mixxx::SoundSource::getTypeFromFile(fileInfo.asQFileInfo());
289+
qDebug() << "isFileSupported" << fileType;
290+
return isFileTypeSupported(fileType);
288291
}
289292

290293
// static

0 commit comments

Comments
 (0)