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
b743e4aa
Commit
b743e4aa
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 vout
Signed-off-by:
Rémi Denis-Courmont
<
remi@remlab.net
>
parent
78e9ac23
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
1 deletion
+19
-1
modules/lua/libs/objects.c
modules/lua/libs/objects.c
+18
-0
share/lua/intf/modules/httprequests.lua
share/lua/intf/modules/httprequests.lua
+1
-1
No files found.
modules/lua/libs/objects.c
View file @
b743e4aa
...
...
@@ -33,6 +33,7 @@
#endif
#include <vlc_common.h>
#include <vlc_vout.h>
#include <lua.h>
/* Low level lua C API */
#include <lauxlib.h>
/* Higher level C API */
...
...
@@ -111,6 +112,22 @@ int vlclua_push_vlc_object( lua_State *L, vlc_object_t *p_obj )
lua_setmetatable
(
L
,
-
2
);
return
1
;
}
static
int
vlclua_get_vout
(
lua_State
*
L
)
{
input_thread_t
*
p_input
=
vlclua_get_input_internal
(
L
);
if
(
p_input
)
{
vout_thread_t
*
p_vout
=
input_GetVout
(
p_input
);
vlc_object_release
(
p_input
);
if
(
p_vout
)
{
vlclua_push_vlc_object
(
L
,
(
vlc_object_t
*
)
p_vout
);
return
1
;
}
}
lua_pushnil
(
L
);
return
1
;
}
/*****************************************************************************
*
...
...
@@ -120,6 +137,7 @@ static const luaL_Reg vlclua_object_reg[] = {
{
"playlist"
,
vlclua_get_playlist
},
{
"libvlc"
,
vlclua_get_libvlc
},
{
"find"
,
vlclua_object_find
},
{
"vout"
,
vlclua_get_vout
},
{
NULL
,
NULL
}
};
...
...
share/lua/intf/modules/httprequests.lua
View file @
b743e4aa
...
...
@@ -306,7 +306,7 @@ getstatus = function (includecategories)
local
input
=
vlc
.
object
.
input
()
local
item
=
vlc
.
input
.
item
()
local
playlist
=
vlc
.
object
.
playlist
()
local
vout
=
input
and
vlc
.
object
.
find
(
input
,
'vout'
,
'child'
)
local
vout
=
vlc
.
object
.
vout
(
)
local
s
=
{}
...
...
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