mirror of https://github.com/mpv-player/mpv
meson: check for x11 when building the xv option
Obvious oversight in the original PR for the meson build. The xv option requires x11 to function. Check for this by using the require method.
This commit is contained in:
parent
257bc95255
commit
3bfc37dcb4
|
@ -1088,7 +1088,11 @@ if x11['use']
|
|||
'video/out/x11_common.c')
|
||||
endif
|
||||
|
||||
xv = dependency('xv', required: get_option('xv'))
|
||||
xv_opt = get_option('xv').require(
|
||||
x11['use'],
|
||||
error_message: 'x11 could not be found!',
|
||||
)
|
||||
xv = dependency('xv', required: xv_opt)
|
||||
if xv.found()
|
||||
dependencies += xv
|
||||
features += 'xv'
|
||||
|
|
Loading…
Reference in New Issue