[vlc-devel] [PATCH] lua: input: Expose tracks through lua bindings

Pierre Ynard linkfanel at yahoo.fr
Fri Jan 6 09:00:12 CET 2017

> The specific goal here is to allow tracks to be exposed within the
> http interface, however it seems like a good motivation to also allow
> any lua extension to list/select tracks.
> I haven't looked at the dialog API, but can't you simply attach a lua
> object to any widget you'd create from a script?

I don't know, maybe you better look and check; but anyway that's not
going to work over HTTP and others.

> +static int vlclua_input_item_current_track( lua_State* L )
> +        return luaL_error( L, "vlc.input:set_track(): invalid track type provided" );
Now you're making me cry.

> +                if( strcmp( psz_track_type, "video-es" ) == 0

Have you tested this? I don't see how that can work.

Pierre Ynard
"Une âme dans un corps, c'est comme un dessin sur une feuille de papier."

More information about the vlc-devel mailing list