comparison data/fileio/test/UnsupportedFormat.cpp @ 1728:a47a23c824ac

Merge
author Chris Cannam
date Wed, 22 May 2019 15:37:44 +0100
parents 9ec3f123f1fb
children
comparison
equal deleted inserted replaced
1717:417528c41e66 1728:a47a23c824ac
22 22
23 bool 23 bool
24 UnsupportedFormat::isLegitimatelyUnsupported(QString format) 24 UnsupportedFormat::isLegitimatelyUnsupported(QString format)
25 { 25 {
26 #ifdef Q_OS_WIN 26 #ifdef Q_OS_WIN
27
28 if (sizeof(void *) == 4) {
29 // Our 32-bit MinGW build lacks MediaFoundation support
30 return (format == "aac" ||
31 format == "apple_lossless" ||
32 format == "m4a" ||
33 format == "wma");
34 }
35
27 // Our CI tests run on Windows Server, which annoyingly seems to 36 // Our CI tests run on Windows Server, which annoyingly seems to
28 // come without codecs for WMA and AAC 37 // come without codecs for WMA and AAC
29 38
30 NTSTATUS(WINAPI *RtlGetVersion)(LPOSVERSIONINFOEXW); 39 NTSTATUS(WINAPI *RtlGetVersion)(LPOSVERSIONINFOEXW);
31 *(FARPROC*)&RtlGetVersion = GetProcAddress 40 *(FARPROC*)&RtlGetVersion = GetProcAddress
47 56
48 } else { 57 } else {
49 std::cerr << "WARNING: Failed to find RtlGetVersion in NTDLL" 58 std::cerr << "WARNING: Failed to find RtlGetVersion in NTDLL"
50 << std::endl; 59 << std::endl;
51 } 60 }
61
62 // If none of the above applies, then we should have everything
63 // except this:
52 64
53 return (format == "apple_lossless"); 65 return (format == "apple_lossless");
54 66
55 #else 67 #else
56 #ifdef Q_OS_MAC 68 #ifdef Q_OS_MAC