Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Sep 2022 22:22:43 GMT
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 0f9ccf810cc7 - main - www/firefox: fix build on powerpc64*
Message-ID:  <202209162222.28GMMhUD075118@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202209162222.28GMMhUD075118>