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
cb4433ed
Commit
cb4433ed
authored
Aug 04, 2011
by
Akash Mehrotra
Committed by
Rémi Denis-Courmont
Aug 23, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
LUA:Expose aout
Signed-off-by:
Rémi Denis-Courmont
<
remi@remlab.net
>
parent
b743e4aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
modules/lua/libs/objects.c
modules/lua/libs/objects.c
+17
-1
No files found.
modules/lua/libs/objects.c
View file @
cb4433ed
...
...
@@ -128,7 +128,22 @@ static int vlclua_get_vout( lua_State *L )
lua_pushnil
(
L
);
return
1
;
}
static
int
vlclua_get_aout
(
lua_State
*
L
)
{
input_thread_t
*
p_input
=
vlclua_get_input_internal
(
L
);
if
(
p_input
)
{
audio_output_t
*
p_aout
=
input_GetAout
(
p_input
);
vlc_object_release
(
p_input
);
if
(
p_aout
)
{
vlclua_push_vlc_object
(
L
,
(
vlc_object_t
*
)
p_aout
);
return
1
;
}
}
lua_pushnil
(
L
);
return
1
;
}
/*****************************************************************************
*
*****************************************************************************/
...
...
@@ -138,6 +153,7 @@ static const luaL_Reg vlclua_object_reg[] = {
{
"libvlc"
,
vlclua_get_libvlc
},
{
"find"
,
vlclua_object_find
},
{
"vout"
,
vlclua_get_vout
},
{
"aout"
,
vlclua_get_aout
},
{
NULL
,
NULL
}
};
...
...
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