changeset 1604:8aa1447fe27e bqaudiostream

Be a tiny bit discriminating about content types!
author Chris Cannam
date Wed, 30 Jan 2019 14:56:23 +0000
parents 6d9881e59cc2
children d83ab62cdc28
files data/fileio/BQAFileReader.cpp
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
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