From f4db4aaed720eecdb24533bc82c3a6137fd20067 Mon Sep 17 00:00:00 2001 From: nanahi <130121847+na-na-hi@users.noreply.github.com> Date: Wed, 3 Apr 2024 23:49:56 -0400 Subject: input: don't use recursive mutex Previous commits made sure that the lock will never be called for more than once for all public functions. Thus deadlock is impossible, so recursive mutex is unneeded and can be converted to a normal mutex. --- input/input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/input/input.c b/input/input.c index 8b53e56879..d58e5e9208 100644 --- a/input/input.c +++ b/input/input.c @@ -1351,7 +1351,7 @@ struct input_ctx *mp_input_init(struct mpv_global *global, ictx->opts = ictx->opts_cache->opts; - mp_mutex_init_type(&ictx->mutex, MP_MUTEX_RECURSIVE); + mp_mutex_init(&ictx->mutex); // Setup default section, so that it does nothing. mp_input_enable_section(ictx, NULL, MP_INPUT_ALLOW_VO_DRAGGING | -- cgit v1.2.3