git: 0f9ccf810cc7 - main - www/firefox: fix build on powerpc64*
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 16 Sep 2022 22:22:43 UTC
The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=0f9ccf810cc75262b0ac52d4e193633ac85920dc commit 0f9ccf810cc75262b0ac52d4e193633ac85920dc Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2022-09-16 21:02:30 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2022-09-16 21:02:30 +0000 www/firefox: fix build on powerpc64* In file included from Unified_cpp_dom_media_flac0.cpp:2: /wrkdirs/usr/ports/www/firefox/work/firefox-105.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); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- www/firefox/files/patch-dom_media_flac_FlacDecoder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/firefox/files/patch-dom_media_flac_FlacDecoder.cpp b/www/firefox/files/patch-dom_media_flac_FlacDecoder.cpp index 954b78f5bf37..c96cb2b99987 100644 --- a/www/firefox/files/patch-dom_media_flac_FlacDecoder.cpp +++ b/www/firefox/files/patch-dom_media_flac_FlacDecoder.cpp @@ -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) != media::DecodeSupport::Unsupported); #else return false; #endif