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.
Unified · Split
| @@ -1351,7 +1351,7 @@ struct input_ctx *mp_input_init(struct mpv_global *global, · 1350 unmodified lines | ||
| 1351 | 1351 | |
| 1352 | 1352 | ictx->opts = ictx->opts_cache->opts; |
| 1353 | 1353 | |
| 1354 | − mp_mutex_init_type(&ictx->mutex, MP_MUTEX_RECURSIVE); | |
| 1354 | + mp_mutex_init(&ictx->mutex); | |
| 1355 | 1355 | |
| 1356 | 1356 | // Setup default section, so that it does nothing. |
| 1357 | 1357 | mp_input_enable_section(ictx, NULL, MP_INPUT_ALLOW_VO_DRAGGING | |