Skip to content

Commit

Permalink
www/firefox-esr: fix build on powerpc64*
Browse files Browse the repository at this point in the history
In file included from Unified_cpp_dom_media_flac0.cpp:2:
/wrkdirs/usr/ports/www/firefox-esr/work/firefox-115.4.0/dom/media/flac/FlacDecoder.cpp:21:10: error: value of type 'media::DecodeSupportSet' (aka 'EnumSet<mozilla::media::DecodeSupport, unsigned long>') is not contextually convertible to 'bool'
         platform->SupportsMimeType("audio/flac"_ns);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/www/firefox-esr/work/firefox-115.4.0/dom/media/flac/FlacDecoder.cpp:20:44: error: invalid operands to binary expression ('StripAtomic<mozilla::RelaxedAtomicBool>' (aka 'bool') and 'media::DecodeSupportSet' (aka 'EnumSet<mozilla::media::DecodeSupport, unsigned long>'))
  return StaticPrefs::media_flac_enabled() &&
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
2 errors generated.
  • Loading branch information
pkubaj committed Nov 14, 2023
1 parent 8a036a0 commit 94d830e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/firefox-esr/files/patch-dom_media_flac_FlacDecoder.cpp
Expand Up @@ -17,7 +17,7 @@ Enable FLAC on platforms without ffvpx like powerpc*
+#elif defined(MOZ_FFMPEG)
+ RefPtr<PDMFactory> platform = new PDMFactory();
+ return StaticPrefs::media_flac_enabled() &&
+ platform->SupportsMimeType("audio/flac"_ns);
+ !platform->SupportsMimeType("audio/flac"_ns).isEmpty();
#else
return false;
#endif

0 comments on commit 94d830e

Please sign in to comment.