From 4fd0a39fc8aad3fb8d7bb8ed2b2918e1e0e7a53b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Mon, 24 Apr 2023 02:51:28 +0200 Subject: [PATCH] vo_gpu_next: fixes to allow using dllimport Address of variables can't be used for constant initialization in C language modes. See https://github.com/llvm/llvm-project/commit/0c43d8077e605ab78d85180f0dcaa4df1ae37607 --- video/out/vo_gpu_next.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/video/out/vo_gpu_next.c b/video/out/vo_gpu_next.c index 2539dc57e4..fbee007cc8 100644 --- a/video/out/vo_gpu_next.c +++ b/video/out/vo_gpu_next.c @@ -1462,7 +1462,7 @@ err_out: static const struct pl_filter_config *map_scaler(struct priv *p, enum scaler_unit unit) { - static const struct pl_filter_preset fixed_scalers[] = { + const struct pl_filter_preset fixed_scalers[] = { { "bilinear", &pl_filter_bilinear }, { "bicubic_fast", &pl_filter_bicubic }, { "nearest", &pl_filter_nearest }, @@ -1470,7 +1470,7 @@ static const struct pl_filter_config *map_scaler(struct priv *p, {0}, }; - static const struct pl_filter_preset fixed_frame_mixers[] = { + const struct pl_filter_preset fixed_frame_mixers[] = { { "linear", &pl_filter_bilinear }, { "oversample", &pl_filter_oversample }, {0}, @@ -1812,7 +1812,7 @@ static void update_render_options(struct vo *vo) p->peak_detect.scene_threshold_low = opts->tone_map.scene_threshold_low; p->peak_detect.scene_threshold_high = opts->tone_map.scene_threshold_high; - static const struct pl_tone_map_function * const tone_map_funs[] = { + const struct pl_tone_map_function * const tone_map_funs[] = { [TONE_MAPPING_AUTO] = &pl_tone_map_auto, [TONE_MAPPING_CLIP] = &pl_tone_map_clip, [TONE_MAPPING_MOBIUS] = &pl_tone_map_mobius,