Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
f79f3ae2
Commit
f79f3ae2
authored
Mar 21, 2012
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lua: export playlist item's input item
parent
bd2623d8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
modules/lua/libs/playlist.c
modules/lua/libs/playlist.c
+2
-0
share/lua/README.txt
share/lua/README.txt
+1
-0
No files found.
modules/lua/libs/playlist.c
View file @
f79f3ae2
...
...
@@ -39,6 +39,7 @@
#include "../vlc.h"
#include "../libs.h"
#include "input.h"
#include "playlist.h"
#include "variables.h"
...
...
@@ -205,6 +206,7 @@ static void push_playlist_item( lua_State *L, playlist_item_t *p_item )
lua_setfield
(
L
,
-
2
,
"duration"
);
lua_pushinteger
(
L
,
p_input
->
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
)
...
...
share/lua/README.txt
View file @
f79f3ae2
...
...
@@ -299,6 +299,7 @@ playlist.get( [what, [tree]] ): Get the playlist.
playlist will be returned in a tree layout. If set to false, the playlist
will be returned using the flat layout.
Each playlist item returned will have the following members:
.item: The input item.
.id: The item's id.
.flags: a table with the following members if the corresponding flag is
set:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment