summaryrefslogtreecommitdiff
path: root/sys/nvenc
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2019-03-11 14:45:14 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2019-03-11 14:45:14 +0530
commit48d897f65f2ea0ba2c2d0871cdeaa64bcd4c50e4 (patch)
tree3e9d4457df1c429f5602fecbe3384c07cdcfb8bc /sys/nvenc
parent01a402e4ec3239f84756b290dc60e56bedb0c79f (diff)
downloadgstreamer-plugins-bad-48d897f65f2ea0ba2c2d0871cdeaa64bcd4c50e4.tar.gz
nvenc: Fix build when cuda is found but nvenc is disabled
tests\check\meson.build:21:5: ERROR: Unknown variable "use_nvenc_gl". Also do the same change in nvdec, just to be defensive about future issues.
Diffstat (limited to 'sys/nvenc')
-rw-r--r--sys/nvenc/meson.build6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/nvenc/meson.build b/sys/nvenc/meson.build
index 2a6739f88..88d3929fd 100644
--- a/sys/nvenc/meson.build
+++ b/sys/nvenc/meson.build
@@ -5,14 +5,14 @@ nvenc_sources = [
'gstnvh265enc.c',
]
+use_nvenc_gl = false
+extra_c_args = []
+
nvenc_option = get_option('nvenc')
if nvenc_option.disabled()
subdir_done()
endif
-use_nvenc_gl = false
-extra_c_args = []
-
if host_machine.system() == 'windows'
if cc.has_header('cuda_gl_interop.h', args: '-I' + cuda_incdir)
use_nvenc_gl = true