[vlc-devel] [PATCH] lua: add missing player lock
Thomas Guillem
thomas at gllm.fr
Tue Oct 6 09:22:32 CEST 2020
LGTM
On Tue, Oct 6, 2020, at 09:16, Pierre Lamot wrote:
> ---
> modules/lua/libs/input.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/modules/lua/libs/input.c b/modules/lua/libs/input.c
> index 9cae145854..39bc12511a 100644
> --- a/modules/lua/libs/input.c
> +++ b/modules/lua/libs/input.c
> @@ -645,7 +645,9 @@ static int vlclua_input_add_subtitle(lua_State *L,
> bool b_path)
> mrl = vlc_path2uri(sub, NULL);
>
> const char *uri = b_path ? mrl : sub;
> + vlc_player_Lock(player);
> vlc_player_AddAssociatedMedia(player, SPU_ES, uri, autoselect,
> true, false);
> + vlc_player_Unlock(player);
> if (b_path)
> free(mrl);
>
> --
> 2.25.1
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
More information about the vlc-devel
mailing list