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:
Martin Stransky 2020-04-29 05:44:20 +00:00
parent 80d2efc4d6
commit 604f4212cd

View File

@ -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;
}