From 162be019ff5e0569ce8fae6a89b2daf24c31ec25 Mon Sep 17 00:00:00 2001 From: q66 Date: Fri, 23 Apr 2021 19:17:48 +0200 Subject: [PATCH] firefox: fix flac-no-ffvpx.patch to unbreak ppc64* --- srcpkgs/firefox/patches/flac-no-ffvpx.patch | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/srcpkgs/firefox/patches/flac-no-ffvpx.patch b/srcpkgs/firefox/patches/flac-no-ffvpx.patch index e3f60e8ecf..740f561445 100644 --- a/srcpkgs/firefox/patches/flac-no-ffvpx.patch +++ b/srcpkgs/firefox/patches/flac-no-ffvpx.patch @@ -12,15 +12,14 @@ index 53fc3c9937f7..b23771ab80fa 100644 namespace mozilla { -@@ -14,6 +15,11 @@ namespace mozilla { +@@ -14,6 +15,10 @@ namespace mozilla { bool FlacDecoder::IsEnabled() { #ifdef MOZ_FFVPX return StaticPrefs::media_flac_enabled(); +#elif defined(MOZ_FFMPEG) + RefPtr platform = new PDMFactory(); + return StaticPrefs::media_flac_enabled() && -+ platform->SupportsMimeType("audio/flac"_ns, -+ /* DecoderDoctorDiagnostics* */ nullptr); ++ platform->SupportsMimeType("audio/flac"_ns); #else // Until bug 1295886 is fixed. return false;