Bug 1833855 [Linux] Build VA-API FFVPX support Linux/Gtk r=alwu

Differential Revision: https://phabricator.services.mozilla.com/D178636
This commit is contained in:
stransky 2023-06-22 08:35:57 +00:00
parent a0ded01435
commit 0ad4303985
3 changed files with 3 additions and 3 deletions

View File

@ -20,7 +20,7 @@
#undef CONFIG_VP9_VAAPI_HWACCEL
#undef CONFIG_AV1_VAAPI_HWACCEL
#if defined(MOZ_WAYLAND) && !defined(MOZ_FFVPX_AUDIOONLY)
#if defined(MOZ_WIDGET_GTK) && !defined(MOZ_FFVPX_AUDIOONLY)
#define CONFIG_VAAPI 1
#define CONFIG_VAAPI_1 1
#define CONFIG_VP8_VAAPI_HWACCEL 1

View File

@ -113,7 +113,7 @@ if not CONFIG['MOZ_FFVPX_AUDIOONLY']:
'dav1d',
'media_libdav1d_asm',
]
if CONFIG['MOZ_WAYLAND']:
if CONFIG["MOZ_WIDGET_TOOLKIT"] == "gtk":
LOCAL_INCLUDES += ['/media/mozva']
SOURCES += [
'vaapi_av1.c',

View File

@ -63,7 +63,7 @@ if not CONFIG['MOZ_FFVPX_AUDIOONLY']:
'timecode.c',
'video_enc_params.c'
]
if CONFIG["MOZ_WAYLAND"]:
if CONFIG["MOZ_WIDGET_TOOLKIT"] == "gtk":
LOCAL_INCLUDES += ['/media/mozva']
SOURCES += [
'hwcontext_vaapi.c',