[vlc-commits] LUA: synchronise meta with the core

Jean-Baptiste Kempf git at videolan.org
Wed Jul 11 10:47:01 CEST 2012


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Jul 11 10:44:40 2012 +0200| [667cee1d06eb058e1711e69e3f675ad58481955c] | committer: Jean-Baptiste Kempf

LUA: synchronise meta with the core

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

 modules/lua/libs/input.c |    2 ++
 modules/lua/libs/sd.c    |    2 ++
 2 files changed, 4 insertions(+)

diff --git a/modules/lua/libs/input.c b/modules/lua/libs/input.c
index 0fb2e72..9e1942c 100644
--- a/modules/lua/libs/input.c
+++ b/modules/lua/libs/input.c
@@ -145,6 +145,7 @@ static int vlclua_input_metas_internal( lua_State *L, input_item_t *p_item )
         PUSH_META( EncodedBy, "encoded_by" );
         PUSH_META( ArtworkURL, "artwork_url" );
         PUSH_META( TrackID, "track_id" );
+        PUSH_META( TrackTotal, "track_total" );
 
 #undef PUSH_META
 
@@ -341,6 +342,7 @@ static int vlclua_input_item_set_meta( lua_State *L )
         META_TYPE( EncodedBy, "encoded_by" )
         META_TYPE( ArtworkURL, "artwork_url" )
         META_TYPE( TrackID, "track_id" )
+        META_TYPE( TrackTotal, "track_total" )
     };
 #undef META_TYPE
 
diff --git a/modules/lua/libs/sd.c b/modules/lua/libs/sd.c
index fd9c385..fe5fbb7 100644
--- a/modules/lua/libs/sd.c
+++ b/modules/lua/libs/sd.c
@@ -91,6 +91,7 @@ vlclua_item_meta(publisher, Publisher)
 vlclua_item_meta(encodedby, EncodedBy)
 vlclua_item_meta(arturl, ArtworkURL)
 vlclua_item_meta(trackid, TrackID)
+vlclua_item_meta(tracktotal, TrackTotal)
 
 static const luaL_Reg vlclua_item_reg[] = {
     vlclua_item_luareg(title)
@@ -110,6 +111,7 @@ static const luaL_Reg vlclua_item_reg[] = {
     vlclua_item_luareg(encodedby)
     vlclua_item_luareg(arturl)
     vlclua_item_luareg(trackid)
+    vlclua_item_luareg(tracktotal)
     { NULL, NULL }
 };
 



More information about the vlc-commits mailing list