[vlc-devel] [vlc-commits] commit: Lua: don't use empty strings for metas (close #3403) ( Fabio Ritrovato )

Rémi Duraffort ivoire at videolan.org
Thu Mar 11 18:00:43 CET 2010


> @@ -291,7 +291,7 @@ static int vlclua_node_add_node( lua_State *L )
>                                                                  name, 0, NULL, 0,
>                                                                  -1, ITEM_TYPE_NODE );
>                  free( name );
> -                lua_getfield( L, -1, "arturl" );
> +                if( lua_isstring( L, -1 ) && strcmp( lua_tostring( L, -1 ), "" ) )
>                  if( lua_isstring( L, -1 ) )
>                  {
Removing lua_getfield ?

-- 
Rémi Duraffort | ivoire



More information about the vlc-devel mailing list