]> git.sesse.net Git - vlc/commitdiff
lua: remove debug printf and update the doc
authorRémi Duraffort <ivoire@videolan.org>
Sat, 18 Jun 2011 16:16:18 +0000 (18:16 +0200)
committerRémi Duraffort <ivoire@videolan.org>
Sat, 18 Jun 2011 16:16:34 +0000 (18:16 +0200)
modules/lua/vlc.c
share/lua/README.txt

index 5bdbe28b82f9fe4539c19ff0d0aeb85173c4ea48..96e9a099fd28a68aab0c019121f3e9c113b13b99 100644 (file)
@@ -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");
index 842c1c39d9b0837d63f3a06361093d7c4e5e30e6..1e45f83d53e85d6a6ee2d89b6b837f8b1449494c 100644 (file)
@@ -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.