[vlc-devel] [PATCH] lua: input: fix uninitialized autoselect variable

Alexandre Janniaux ajanni at videolabs.io
Fri Sep 13 10:28:03 CEST 2019


Hi,

Right, I'll fix it and send another version.

Thank you for review.

Regards,
--
Alexandre Janniaux
Videolabs

On Fri, Sep 13, 2019 at 08:12:08AM +0200, Steve Lhomme wrote:
> 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
> >
> _______________________________________________
> 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