Skip to content
This repository was archived by the owner on Jan 31, 2025. It is now read-only.

Commit f92e900

Browse files
committed
meson: fix undefined behavior with cdata.set10
This function has never taken a number, only a boolean. Due to leaky python implementation details, it cast literally anything to bool regardless, including somewhat common accidental usage of numbers. This now prints an unavoidable deprecation notice stating that it may be removed at any time. Fix this to use what was always intended -- .set(), as used a few lines down for another number.
1 parent 3ed3f6a commit f92e900

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/meson.build

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ config_cfg.set('INTEL_DRIVER_MICRO_VERSION', intel_vaapi_driver_micro_version)
77
config_cfg.set('INTEL_DRIVER_PRE_VERSION', intel_vaapi_driver_pre_version)
88
config_cfg.set10('HAVE_HYBRID_CODEC', get_option('enable_hybrid_codec'))
99
if WITH_X11
10-
config_cfg.set10('HAVE_VA_X11', 1)
10+
config_cfg.set('HAVE_VA_X11', 1)
1111
endif
1212
if WITH_WAYLAND
13-
config_cfg.set10('HAVE_VA_WAYLAND', 1)
13+
config_cfg.set('HAVE_VA_WAYLAND', 1)
1414
endif
1515
if cc.has_function('log2f')
1616
config_cfg.set('HAVE_LOG2F', 1)

0 commit comments

Comments
 (0)