summaryrefslogtreecommitdiffstats
path: root/input
diff options
context:
space:
mode:
authornanahi <130121847+na-na-hi@users.noreply.github.com>2024-04-03 23:49:56 -0400
committerKacper Michajłow <kasper93@gmail.com>2024-04-17 23:42:35 +0200
commitf4db4aaed720eecdb24533bc82c3a6137fd20067 (patch)
tree5223cd2da2c8948193474795cb1bfa8c84c847d4 /input
parente8b9476bf706401fa0e57fb117012124264483d2 (diff)
downloadmpv-f4db4aaed720eecdb24533bc82c3a6137fd20067.tar.bz2
mpv-f4db4aaed720eecdb24533bc82c3a6137fd20067.tar.xz
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.
Diffstat (limited to 'input')
-rw-r--r--input/input.c2
1 files changed, 1 insertions, 1 deletions
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 |