Mercurial > hg > svcore
diff data/fileio/BQAFileReader.cpp @ 1604:8aa1447fe27e bqaudiostream
Be a tiny bit discriminating about content types!
author | Chris Cannam |
---|---|
date | Wed, 30 Jan 2019 14:56:23 +0000 |
parents | c9c8c49b22d6 |
children | 14747f24ad04 |
line wrap: on
line diff
--- a/data/fileio/BQAFileReader.cpp Wed Jan 30 14:30:49 2019 +0000 +++ b/data/fileio/BQAFileReader.cpp Wed Jan 30 14:56:23 2019 +0000 @@ -188,10 +188,11 @@ } bool -BQAFileReader::supportsContentType(QString) +BQAFileReader::supportsContentType(QString type) { -//!!! todo - return false; + // extremely optimistic, but it's better than rejecting everything + //!!! todo: be more sensible + return (type.startsWith("audio/")); } bool