aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorjbeich <jbeich@FreeBSD.org>2017-10-31 05:47:20 +0800
committerjbeich <jbeich@FreeBSD.org>2017-10-31 05:47:20 +0800
commitcc14face872357861b39c7e1e3728a1e54e73a05 (patch)
tree74717dfb5fc9567d091d08c66dbfca8aaf3150f3 /mail
parentb6284437d4423640e6f289fda56d255491fd7b1d (diff)
downloadfreebsd-ports-gnome-cc14face872357861b39c7e1e3728a1e54e73a05.tar.gz
freebsd-ports-gnome-cc14face872357861b39c7e1e3728a1e54e73a05.tar.zst
freebsd-ports-gnome-cc14face872357861b39c7e1e3728a1e54e73a05.zip
gecko: better detect FLAC after r453085
MFH: 2017Q4
Diffstat (limited to 'mail')
-rw-r--r--mail/thunderbird/files/patch-bug141255820
1 files changed, 15 insertions, 5 deletions
diff --git a/mail/thunderbird/files/patch-bug1412558 b/mail/thunderbird/files/patch-bug1412558
index bf693800fa48..536162ba6edf 100644
--- a/mail/thunderbird/files/patch-bug1412558
+++ b/mail/thunderbird/files/patch-bug1412558
@@ -2,15 +2,25 @@ diff --git dom/media/flac/FlacDecoder.cpp dom/media/flac/FlacDecoder.cpp
index 53fc3c9937f7..b23771ab80fa 100644
--- mozilla/dom/media/flac/FlacDecoder.cpp
+++ mozilla/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
--- mozilla/media/ffvpx/README_MOZILLA