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.
This commit is contained in:
nanahi authored and Kacper Michajłow committed 2024-04-17 23:42:35 +02:00
1 parent e8b9476bf7
commit f4db4aaed7
1 file changed
+1 -1
+1 -1
View File
@@ -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 |