summaryrefslogtreecommitdiff
path: root/firefox-disable-ffvpx-with-vapi.patch
diff options
context:
space:
mode:
authorMartin Stransky <stransky@redhat.com>2020-05-07 10:18:18 +0200
committerMartin Stransky <stransky@redhat.com>2020-05-07 10:18:18 +0200
commitc960c03a4857ee2765dbd4b622df7b3993824dc6 (patch)
tree32e752655596a2551005641e748b71fff542315c /firefox-disable-ffvpx-with-vapi.patch
parentspec build tweaks (diff)
downloadlibrewolf-fedora-ff-c960c03a4857ee2765dbd4b622df7b3993824dc6.tar.gz
librewolf-fedora-ff-c960c03a4857ee2765dbd4b622df7b3993824dc6.tar.bz2
librewolf-fedora-ff-c960c03a4857ee2765dbd4b622df7b3993824dc6.zip
Disable ffvpx when va-api is enabled
Diffstat (limited to 'firefox-disable-ffvpx-with-vapi.patch')
-rw-r--r--firefox-disable-ffvpx-with-vapi.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/firefox-disable-ffvpx-with-vapi.patch b/firefox-disable-ffvpx-with-vapi.patch
new file mode 100644
index 0000000..df179b0
--- /dev/null
+++ b/firefox-disable-ffvpx-with-vapi.patch
@@ -0,0 +1,41 @@
+diff --git a/dom/media/platforms/PDMFactory.cpp b/dom/media/platforms/PDMFactory.cpp
+--- a/dom/media/platforms/PDMFactory.cpp
++++ b/dom/media/platforms/PDMFactory.cpp
+@@ -21,16 +21,17 @@
+ #include "mozilla/GpuDecoderModule.h"
+ #include "mozilla/RemoteDecoderModule.h"
+ #include "mozilla/SharedThreadPool.h"
+ #include "mozilla/StaticPrefs_media.h"
+ #include "mozilla/StaticPtr.h"
+ #include "mozilla/SyncRunnable.h"
+ #include "mozilla/TaskQueue.h"
+ #include "mozilla/gfx/gfxVars.h"
++#include "gfxPlatformGtk.h"
+
+ #ifdef XP_WIN
+ # include "WMFDecoderModule.h"
+ # include "mozilla/WindowsVersion.h"
+ #endif
+ #ifdef MOZ_FFVPX
+ # include "FFVPXRuntimeLinker.h"
+ #endif
+@@ -362,17 +363,18 @@ void PDMFactory::CreatePDMs() {
+ #endif
+ #ifdef MOZ_OMX
+ if (StaticPrefs::media_omx_enabled()) {
+ m = OmxDecoderModule::Create();
+ StartupPDM(m);
+ }
+ #endif
+ #ifdef MOZ_FFVPX
+- if (StaticPrefs::media_ffvpx_enabled()) {
++ if (StaticPrefs::media_ffvpx_enabled() &&
++ !gfxPlatformGtk::GetPlatform()->UseWaylandHardwareVideoDecoding()) {
+ m = FFVPXRuntimeLinker::CreateDecoderModule();
+ StartupPDM(m);
+ }
+ #endif
+ #ifdef MOZ_FFMPEG
+ if (StaticPrefs::media_ffmpeg_enabled()) {
+ m = FFmpegRuntimeLinker::CreateDecoderModule();
+ mFFmpegFailedToLoad = !StartupPDM(m);
bgstack15