Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
d9322881
Commit
d9322881
authored
Jan 13, 2010
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lua: Expose extra meta through vlc.item.metas.
parent
bd26b2c1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
modules/misc/lua/libs/input.c
modules/misc/lua/libs/input.c
+17
-2
No files found.
modules/misc/lua/libs/input.c
View file @
d9322881
...
...
@@ -151,6 +151,21 @@ static int vlclua_input_metas_internal( lua_State *L, input_item_t *p_item )
#undef PUSH_META
vlc_mutex_lock
(
&
p_item
->
lock
);
if
(
p_item
->
p_meta
)
{
char
**
names
=
vlc_meta_CopyExtraNames
(
p_item
->
p_meta
);
for
(
int
i
=
0
;
names
[
i
];
i
++
)
{
const
char
*
meta
=
vlc_meta_GetExtra
(
p_item
->
p_meta
,
names
[
i
]);
lua_pushstring
(
L
,
meta
);
lua_setfield
(
L
,
-
2
,
names
[
i
]
);
printf
(
"setting %s=%s
\n
"
,
names
[
i
],
meta
);
free
(
names
[
i
]);
}
free
(
names
);
}
vlc_mutex_unlock
(
&
p_item
->
lock
);
return
1
;
}
...
...
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