diff options
author | jbeich <jbeich@FreeBSD.org> | 2017-10-31 05:47:20 +0800 |
---|---|---|
committer | Koop Mast <kwm@rainbow-runner.nl> | 2018-02-04 05:51:01 +0800 |
commit | 3eb17ef74baae6366839e5842b4d85248c1e726f (patch) | |
tree | b236b5cc4e71b1922cfd4c143ae63264d8e0d3dc /www/firefox/files | |
parent | e69b815b4f636d5cdf493921d8407315a0384983 (diff) | |
download | freebsd-ports-gnome-3eb17ef74baae6366839e5842b4d85248c1e726f.tar.gz freebsd-ports-gnome-3eb17ef74baae6366839e5842b4d85248c1e726f.tar.zst freebsd-ports-gnome-3eb17ef74baae6366839e5842b4d85248c1e726f.zip |
gecko: better detect FLAC after r453085
MFH: 2017Q4
Diffstat (limited to 'www/firefox/files')
-rw-r--r-- | www/firefox/files/patch-bug1412558 | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/www/firefox/files/patch-bug1412558 b/www/firefox/files/patch-bug1412558 index ffa49490caf6..b6d3b045eae5 100644 --- a/www/firefox/files/patch-bug1412558 +++ b/www/firefox/files/patch-bug1412558 @@ -2,15 +2,25 @@ diff --git dom/media/flac/FlacDecoder.cpp dom/media/flac/FlacDecoder.cpp index 53fc3c9937f7..b23771ab80fa 100644 --- dom/media/flac/FlacDecoder.cpp +++ dom/media/flac/FlacDecoder.cpp -@@ -36,7 +36,7 @@ FlacDecoder::CreateStateMachine() - /* static */ bool - FlacDecoder::IsEnabled() +@@ -7,6 +7,7 @@ + #include "FlacDecoder.h" + #include "MediaContainerType.h" + #include "MediaPrefs.h" ++#include "PDMFactory.h" + + namespace mozilla { + +@@ -15,6 +16,10 @@ FlacDecoder::IsEnabled() { --#ifdef MOZ_FFVPX -+#if defined(MOZ_FFMPEG) || defined(MOZ_FFVPX) + #ifdef MOZ_FFVPX return MediaPrefs::FlacEnabled(); ++#elif defined(MOZ_FFMPEG) ++ RefPtr<PDMFactory> platform = new PDMFactory(); ++ return MediaPrefs::FlacEnabled() && platform->SupportsMimeType(NS_LITERAL_CSTRING("audio/flac"), ++ /* DecoderDoctorDiagnostics* */ nullptr); #else // Until bug 1295886 is fixed. + return false; diff --git media/ffvpx/README_MOZILLA media/ffvpx/README_MOZILLA index 5d3a6037efe0..43144b726a92 100644 --- media/ffvpx/README_MOZILLA |