summaryrefslogtreecommitdiffstats
path: root/sub/osd.c
diff options
context:
space:
mode:
authorNRK <nrk@disroot.org>2023-10-19 16:16:12 +0600
committersfan5 <sfan5@live.de>2023-10-20 21:31:09 +0200
commit450a69b1d6592d8bc45c28250b86ba4a8b1d8e54 (patch)
treea24be9a1d14e518d42824d707c196aea894ccb50 /sub/osd.c
parent2070331f649a1e19021d62d4e3a176dcd40732f4 (diff)
downloadmpv-450a69b1d6592d8bc45c28250b86ba4a8b1d8e54.tar.bz2
mpv-450a69b1d6592d8bc45c28250b86ba4a8b1d8e54.tar.xz
various: remove ATOMIC_VAR_INIT
the fallback needed it due to the struct wrapper. but the fallback is now removed so it's no longer needed. as for standard atomics, it was never really needed either, was useless and then made obsolete in C17 and removed in C23. ref: https://gustedt.wordpress.com/2018/08/06/c17-obsoletes-atomic_var_init/ ref: https://en.cppreference.com/w/c/atomic/ATOMIC_VAR_INIT
Diffstat (limited to 'sub/osd.c')
-rw-r--r--sub/osd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sub/osd.c b/sub/osd.c
index fcdc7dd4df..88baecb768 100644
--- a/sub/osd.c
+++ b/sub/osd.c
@@ -126,7 +126,7 @@ struct osd_state *osd_create(struct mpv_global *global)
.opts_cache = m_config_cache_alloc(osd, global, &mp_osd_render_sub_opts),
.global = global,
.log = mp_log_new(osd, global->log, "osd"),
- .force_video_pts = ATOMIC_VAR_INIT(MP_NOPTS_VALUE),
+ .force_video_pts = MP_NOPTS_VALUE,
.stats = stats_ctx_create(osd, global, "osd"),
};
pthread_mutex_init(&osd->lock, NULL);