[vlc-devel] [PATCH] lua: input: fix uninitialized autoselect variable
Steve Lhomme
robux4 at ycbcr.xyz
Fri Sep 13 08:12:08 CEST 2019
Hi,
It seems the logical default value. The documentation should be updated.
The error message above this line as well as it seems like this
parameter doesn't even exist.
On 2019-09-05 1:58, Alexandre Janniaux wrote:
> ---
> modules/lua/libs/input.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/modules/lua/libs/input.c b/modules/lua/libs/input.c
> index 6a4b14cf2e..1da99aa97a 100644
> --- a/modules/lua/libs/input.c
> +++ b/modules/lua/libs/input.c
> @@ -639,7 +639,8 @@ static int vlclua_input_add_subtitle(lua_State *L, bool b_path)
> if (!lua_isstring(L, 1))
> return luaL_error( L, "vlc.player.add_subtitle() usage: (path)" );
>
> - bool autoselect;
> + /* By default, it will select the track from the new associated media. */
> + bool autoselect = true;
> if (lua_gettop(L) >= 2)
> autoselect = lua_toboolean(L, 2);
>
> --
> 2.23.0
>
> _______________________________________________
> 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