Skip to content

Commit

Permalink
www/firefox: 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/work/firefox-119.0/dom/media/flac/FlacDecoder.cpp:21:80: error: no member named 'Unsupported' in 'mozilla::media::DecodeSupport'
         (platform->SupportsMimeType("audio/flac"_ns) != media::DecodeSupport::Unsupported);
                                                         ~~~~~~~~~~~~~~~~~~~~~~^
1 error generated.
  • Loading branch information
pkubaj committed Nov 9, 2023
1 parent d12bc36 commit de9a71c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/firefox/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) != media::DecodeSupport::Unsupported);
+ !platform->SupportsMimeType("audio/flac"_ns).isEmpty();
#else
return false;
#endif

0 comments on commit de9a71c

Please sign in to comment.