[vlc-commits] lua: fix comments about playlist API expansion

Pierre Ynard git at videolan.org
Wed Nov 23 16:13:34 CET 2016


vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Wed Nov 23 16:12:25 2016 +0100| [e72b4cfac135d1425142e622bc6fc4525cfb97fa] | committer: Pierre Ynard

lua: fix comments about playlist API expansion

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e72b4cfac135d1425142e622bc6fc4525cfb97fa
---

 modules/lua/libs/playlist.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/lua/libs/playlist.c b/modules/lua/libs/playlist.c
index b3e2f9d..f2085d6 100644
--- a/modules/lua/libs/playlist.c
+++ b/modules/lua/libs/playlist.c
@@ -216,6 +216,8 @@ static void push_playlist_item( lua_State *L, playlist_item_t *p_item )
     lua_setfield( L, -2, "flags" );
     if( p_input )
     {
+        /* Apart from nb_played, these fields unfortunately duplicate
+           fields already available from the input item */
         char *psz_name = input_item_GetTitleFbName( p_input );
         lua_pushstring( L, psz_name );
         free( psz_name );
@@ -230,7 +232,6 @@ static void push_playlist_item( lua_State *L, playlist_item_t *p_item )
         lua_pushinteger( L, p_item->i_nb_played );
         lua_setfield( L, -2, "nb_played" );
         luaopen_input_item( L, p_input );
-        /* TODO: add (optional) info categories, meta, options, es */
     }
     if( p_item->i_children >= 0 )
     {



More information about the vlc-commits mailing list