Mercurial > hg > svcore
changeset 1718:219b2c2ff8c2
32-bit build lacks AAC and WMA
author | Chris Cannam |
---|---|
date | Tue, 21 May 2019 17:13:56 +0100 |
parents | ab4fd193262b |
children | 6af7bd6aaf79 35d08f4274b9 2c388d372abf a47a23c824ac |
files | data/fileio/test/UnsupportedFormat.h |
diffstat | 1 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/data/fileio/test/UnsupportedFormat.h Thu May 16 12:54:58 2019 +0100 +++ b/data/fileio/test/UnsupportedFormat.h Tue May 21 17:13:56 2019 +0100 @@ -19,7 +19,15 @@ static bool isLegitimatelyUnsupported(QString format) { #ifdef Q_OS_WIN - return (format == "apple_lossless"); + if (sizeof(void *) == 4) { + // Our 32-bit MinGW build lacks MediaFoundation support + return (format == "aac" || + format == "apple_lossless" || + format == "m4a" || + format == "wma"); + } else { + return (format == "apple_lossless"); + } #else #ifdef Q_OS_MAC return (format == "wma");