mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 09:15:35 +00:00
Bug 1633273 [Wayland] Enable VA-API HW decoding with WebRender only, r=jya
Differential Revision: https://phabricator.services.mozilla.com/D72814
This commit is contained in:
parent
80d2efc4d6
commit
604f4212cd
@ -215,9 +215,8 @@ MediaResult FFmpegVideoDecoder<LIBAV_VER>::InitVAAPIDecoder() {
|
||||
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!");
|
||||
if (layersBackend != layers::LayersBackend::LAYERS_WR) {
|
||||
FFMPEG_LOG("VA-API works with WebRender only!");
|
||||
return NS_ERROR_NOT_AVAILABLE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user