[vlc-commits] lua: remove debug printf and update the doc

Rémi Duraffort git at videolan.org
Sat Jun 18 18:16:49 CEST 2011


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sat Jun 18 18:16:18 2011 +0200| [5fe74b9be3aa1789dab380708401c5db46808b5b] | committer: Rémi Duraffort

lua: remove debug printf and update the doc

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

 modules/lua/vlc.c    |    2 --
 share/lua/README.txt |    5 ++---
 2 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/modules/lua/vlc.c b/modules/lua/vlc.c
index 5bdbe28..96e9a09 100644
--- a/modules/lua/vlc.c
+++ b/modules/lua/vlc.c
@@ -420,8 +420,6 @@ void __vlclua_read_custom_meta_data( vlc_object_t *p_this, lua_State *L,
         while( lua_next( L, -2 ) )
         {
             /* ... item meta key value */
-            printf("%s => %s\n", lua_typename(L, lua_type(L, -2)),
-                   lua_typename(L, lua_type(L, -1)));
             if( !lua_isstring( L, -2 ) || !lua_isstring( L, -1 ) )
             {
                 msg_Err( p_this, "'meta' keys and values must be strings");
diff --git a/share/lua/README.txt b/share/lua/README.txt
index 842c1c3..1e45f83 100644
--- a/share/lua/README.txt
+++ b/share/lua/README.txt
@@ -284,9 +284,8 @@ playlist.add( ... ): Add a bunch of items to the playlist.
                 example: .options = { "fullscreen" }
       .duration: stream duration in seconds (OPTIONAL)
       .meta: custom meta data (OPTIONAL, meta data)
-             A .meta field is a table of custom meta categories which
-             each have custom meta properties.
-             example: .meta = { ["Google video"] = { ["docid"] = "-5784010886294950089"; ["GVP version"] = "1.1" }; ["misc"] = { "Hello" = "World!" } }
+             A .meta field is a table of custom meta key value pairs.
+             example: .meta = { ["GVP docid"] = "-5784010886294950089", ["GVP version] = "1.1", Hello = "World!" }
   Invalid playlist items will be discarded by VLC.
 playlist.enqueue( ... ): like playlist.add() except that track isn't played.
 playlist.get( [what, [tree]] ): Get the playlist.



More information about the vlc-commits mailing list