summaryrefslogtreecommitdiff
path: root/mozilla-1625431.patch
diff options
context:
space:
mode:
authorMartin Stransky <stransky@redhat.com>2020-05-05 14:01:50 +0200
committerMartin Stransky <stransky@redhat.com>2020-05-05 14:01:50 +0200
commitcb1655cd55c2837ce98fd7ec62e577c833cfeef9 (patch)
treee3f20d8294810fb86973e255b5c227c03cb13fe0 /mozilla-1625431.patch
parentDon't use google safe browsing api key for the geolocation (diff)
downloadlibrewolf-fedora-ff-cb1655cd55c2837ce98fd7ec62e577c833cfeef9.tar.gz
librewolf-fedora-ff-cb1655cd55c2837ce98fd7ec62e577c833cfeef9.tar.bz2
librewolf-fedora-ff-cb1655cd55c2837ce98fd7ec62e577c833cfeef9.zip
Added va-api patches
Diffstat (limited to 'mozilla-1625431.patch')
-rw-r--r--mozilla-1625431.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/mozilla-1625431.patch b/mozilla-1625431.patch
new file mode 100644
index 0000000..c0e6d3a
--- /dev/null
+++ b/mozilla-1625431.patch
@@ -0,0 +1,20 @@
+diff --git a/dom/media/platforms/ffmpeg/FFmpegVideoDecoder.cpp b/dom/media/platforms/ffmpeg/FFmpegVideoDecoder.cpp
+--- a/dom/media/platforms/ffmpeg/FFmpegVideoDecoder.cpp
++++ b/dom/media/platforms/ffmpeg/FFmpegVideoDecoder.cpp
+@@ -172,6 +172,15 @@
+ MediaResult FFmpegVideoDecoder<LIBAV_VER>::InitVAAPIDecoder() {
+ FFMPEG_LOG("Initialising VA-API FFmpeg decoder");
+
++ auto layersBackend = mImageAllocator
++ ? mImageAllocator->GetCompositorBackendType()
++ : layers::LayersBackend::LAYERS_BASIC;
++ if (layersBackend != layers::LayersBackend::LAYERS_OPENGL &&
++ layersBackend != layers::LayersBackend::LAYERS_WR) {
++ FFMPEG_LOG("VA-API works with HW accelerated backend only!");
++ return NS_ERROR_NOT_AVAILABLE;
++ }
++
+ if (!mLib->IsVAAPIAvailable()) {
+ FFMPEG_LOG("libva library or symbols are missing.");
+ return NS_ERROR_NOT_AVAILABLE;
+
bgstack15